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

PHP Home Page

Manual Table of Contents
Up to Sybase
Quick Reference
English version of this pageGerman version of this pageJapanese version of this pageItalian 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
Sun, 06 Aug 2000
sybase_fetch_field 
Next page


sybase_fetch_array

(PHP3 , PHP4 )

sybase_fetch_array -- Retourne une ligne sous la forme d'un tableau.

Description

int sybase_fetch_array (int result)

Retourne un tableau qui contient la ligne demandée, ou FALSE s'il ne reste plus de ligne.

sybase_fetch_array() est une version évoluée de sybase_fetch_row(). En plus d'enregistrer les données dans un tableau à index numérique, cette fonction peut aussi les enregistrer dans un tableau associatif, en utilisant les nom des champs comme clés.

Il est très important de noter quesybase_fetch_array() N'est PAS nettement plus lent que sybase_fetch_row(), tandis qu'elle fourni un confort d'utilisation notable.

Pour plus de détails : 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
Sun, 06 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.