|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-19 11:49 UTC] ali@php.net
[2003-10-19 16:56 UTC] didou@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 23:00:02 2025 UTC |
Description: ------------ In the english version of the manual, the documentation for mysql_fetch_field, there's an error in example 1. The second line in the while loop should use $i, not $result. The line $meta = mysql_fetch_field($result); Should be: $meta = mysql_fetch_field($i); Expected result: ---------------- while ($i < mysql_num_fields($result)) { echo "Information for column $i:<br />\n"; $meta = mysql_fetch_field($i); if (!$meta) { echo "No information available<br />\n"; } Actual result: -------------- while ($i < mysql_num_fields($result)) { echo "Information for column $i:<br />\n"; $meta = mysql_fetch_field($result); if (!$meta) { echo "No information available<br />\n"; }