★ wanayoo — archive 1999 http://www.php.net/manual/function.sybase-fetch-array.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Sybase
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Sybase
* sybase_affected_rows
* sybase_close
* sybase_connect
* sybase_data_seek
* sybase_fetch_array
* sybase_fetch_field
* sybase_fetch_object
* sybase_fetch_row
* sybase_field_seek
* sybase_free_result
* sybase_num_fields
* sybase_num_rows
* sybase_pconnect
* sybase_query
* sybase_result
* sybase_select_db
Manual: sybase_fetch_array
View the source code for this pageSearch the site



Previous page
 sybase_data_seek
 Updated
Sat, 12 Aug 2000
sybase_fetch_field 
Next page


sybase_fetch_array

(PHP3 , PHP4 )

sybase_fetch_array -- fetch row as array

Description

int sybase_fetch_array (int result)

Returns: An array that corresponds to the fetched row, or false if there are no more rows.

sybase_fetch_array() is an extended version of sybase_fetch_row(). In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names as keys.

An important thing to note is that using sybase_fetch_array() is NOT significantly slower than using sybase_fetch_row(), while it provides a significant added value.

For further details, also see sybase_fetch_row()


User Contributed Notes: sybase_fetch_array


joey@samaritan.com
22-Feb-1999 08:04
$q = sybase_query("SELECT COUNT (DISTINCT OPPORTUNITY_ID) FROM
M_OPP_INTERESTS WHERE INTEREST_ID = $i_id", $db);

while ($op_by_int = sybase_fetch_array($q)) {

while (list( $k, $v ) = each( $op_by_int )) {

echo "\$op[$k] => $v\n";

}



Returns:

$op[0] => 2164

$op[computed] => 2164



 About Notes


Previous page
 sybase_data_seek
 Updated
Sat, 12 Aug 2000
sybase_fetch_field 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.