cvs: phpdoc /en/reference/mysql/functions mysql-fetch-array.xml

From: Date: Mon, 20 May 2002 19:24:28 +0000
Subject: cvs: phpdoc /en/reference/mysql/functions mysql-fetch-array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969345714@lists.php.net to get a copy of this message
derick Mon May 20 15:24:28 2002 EDT Modified files: /phpdoc/en/reference/mysql/functions mysql-fetch-array.xml Log: - Fix examples Index: phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml:1.4 phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml:1.5 --- phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml:1.4 Sun Apr 21 11:18:12 2002 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml Mon May 20 15:24:28 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.27 --> <refentry id="function.mysql-fetch-array"> <refnamediv> @@ -74,8 +74,9 @@ $result = mysql_query("SELECT id, name FROM mytable"); - while (($row = mysql_fetch_array($result, MYSQL_NUM)) + while ($row = mysql_fetch_array($result, MYSQL_NUM)) { printf ("ID: %s Name: %s", $row[0], $row[1]); + } mysql_free_result($result); ?> @@ -93,8 +94,9 @@ $result = mysql_query("SELECT id, name FROM mytable"); - while (($row = mysql_fetch_array($result, MYSQL_ASSOC)) - printf ("ID: %s Name: %s", $row["id"], $row["name"]); + while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { + printf ("ID: %s Name: %s", $row["id"], $row["name"]); + } mysql_free_result($result); ?> @@ -112,8 +114,9 @@ $result = mysql_query("SELECT id, name FROM mytable"); - while (($row = mysql_fetch_array($result, MYSQL_BOTH)) - printf ("ID: %s Name: %s", $row[0], $row["name"]); + while ($row = mysql_fetch_array($result, MYSQL_BOTH)) { + printf ("ID: %s Name: %s", $row[0], $row["name"]); + } mysql_free_result($result); ?>

« previous php.doc (#969345714) next »