Re: cvs: phpdoc /en/reference/mysql/functions mysql-fetch-field.xml
| From: | Mehdi Achour | Date: | Sun, 19 Oct 2003 20:53:17 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/mysql/functions mysql-fetch-field.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969356655@lists.php.net to get a copy of this message | ||
Hi Ali,
From the documentation :
object mysql_fetch_field ( resource result [, int field_offset])
The example was good, it also may have be :
$meta = mysql_fetch_field($result, $i);
But in no way
$meta = mysql_fetch_field($i);
I'm reverting and marking #25910 as bogus. Please pay more attention next time, bugs can also be bogus ;)
didou
ali Sun Oct 19 11:49:30 2003 EDTModified files: /phpdoc/en/reference/mysql/functions mysql-fetch-field.xml Log:fixes #25910 Index: phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.7 phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.8 --- phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.7 Wed Jul 9 11:07:29 2003 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml Sun Oct 19 11:49:30 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-fetch-field"><refnamediv>@@ -107,7 +107,7 @@ $i = 0; while ($i < mysql_num_fields($result)) {echo "Information for column $i:<br />\n"; - $meta = mysql_fetch_field($result); + $meta = mysql_fetch_field($i); if (!$meta) { echo "No information available<br />\n"; }