note 63617 rejected from function.mysql-fetch-object by bjori
| From: | bjori@php.net | Date: | Sat, 25 Mar 2006 20:35:41 +0000 |
| Subject: | note 63617 rejected from function.mysql-fetch-object by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106601@lists.php.net to get a copy of this message | ||
Note Submitter: cn at 8850 dot cn
----
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?