CVS update: php3/doc/functions

From: Date: Sat, 27 Feb 1999 19:05:23 +0000
Subject: CVS update: php3/doc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4352@lists.php.net to get a copy of this message
Date: Saturday February 27, 1999 @ 14:05 Author: eschmid Update of /repository/php3/doc/functions In directory asf:/u/temp/cvs-serv5819 Modified Files: mysql.sgml Log Message: Zeev is that ok? Index: php3/doc/functions/mysql.sgml diff -c php3/doc/functions/mysql.sgml:1.21 php3/doc/functions/mysql.sgml:1.22 *** php3/doc/functions/mysql.sgml:1.21 Wed Jan 20 15:30:45 1999 --- php3/doc/functions/mysql.sgml Sat Feb 27 14:05:21 1999 *************** *** 321,326 **** --- 321,327 ---- <funcsynopsis> <funcdef>array <function>mysql_fetch_array</function></funcdef> <paramdef>int <parameter>result</parameter></paramdef> + <paramdef>int <parameter><optional>result_typ</optional></parameter></paramdef> </funcsynopsis> <para> Returns an array that corresponds to the fetched row, or false *************** *** 344,349 **** --- 345,354 ---- slower than using <function>mysql_fetch_row</function>, while it provides a significant added value. <para> + The optional second argument <parameter>result_typ</parameter> in + <function>mysql_fetch_array</function> is a constant and can take + the following values: MYSQL_ASSOC, MYSQL_NUM, and MYSQL_BOTH. + <para> For further details, also see <function>mysql_fetch_row</function> </para> *************** *** 470,475 **** --- 475,481 ---- <funcsynopsis> <funcdef>object <function>mysql_fetch_object</function></funcdef> <paramdef>int <parameter>result</parameter></paramdef> + <paramdef>int <parameter><optional>result_typ</optional></parameter></paramdef> </funcsynopsis> <para> Returns an object with properties that correspond to the fetched *************** *** 480,485 **** --- 486,495 ---- object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets (numbers are illegal property names). + <para> + The optional argument <parameter>result_typ</parameter> is a + constant and can take the following values: MYSQL_ASSOC, + MYSQL_NUM, and MYSQL_BOTH. <para> Speed-wise, the function is identical to <function>mysql_fetch_array</function>, and almost as quick as -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4352) next »