note 63617 added to function.mysql-fetch-object
| From: | cn at 8850 dot cn | Date: | Sat, 25 Mar 2006 20:19:55 +0000 |
| Subject: | note 63617 added to function.mysql-fetch-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106600@lists.php.net to get a copy of this message | ||
while ($row = mysql_fetch_object($result))
{
$id = $row->id; // WON'T WORK //echo "ID: $id";
$username = $row->username;
$email = $row->email;
$nid = $row->net_id;
// some codes...
}
id is the first column, the above code failed to get id value ($id)[NO ERROR SHOWN], while others
have no problem.
Is this a bug?
----
Server IP: 216.194.113.175
Probable Submitter: 130.126.130.168
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-object.php
Edit -- http://master.php.net/note/edit/63617
Del: integrated -- http://master.php.net/note/delete/63617/integrated
Del: useless -- http://master.php.net/note/delete/63617/useless
Del: bad code -- http://master.php.net/note/delete/63617/bad+code
Del: spam -- http://master.php.net/note/delete/63617/spam
Del: non-english -- http://master.php.net/note/delete/63617/non-english
Del: in docs -- http://master.php.net/note/delete/63617/in+docs
Del: other reasons-- http://master.php.net/note/delete/63617
Reject -- http://master.php.net/note/reject/63617
Search -- http://master.php.net/manage/user-notes.php