note 22932 added to function.mysql-fetch-object

From: Date: Thu, 04 Jul 2002 13:12:21 +0000
Subject: note 22932 added to function.mysql-fetch-object
Groups: php.notes 
Request: Send a blank email to php-notes+get-32586@lists.php.net to get a copy of this message
actually i noticed that every query on which you want to call mysql_fetch_object must have its fields explicitely named. $rs = mysql_query("select * from table"); $obj = mysql_fetch_object($rs); $obj->field gives nothing you must specify ("select field from table"); -- http://www.php.net/manual/en/function.mysql-fetch-object.php http://master.php.net/manage/user-notes.php?action=edit+22932 http://master.php.net/manage/user-notes.php?action=delete+22932 http://master.php.net/manage/user-notes.php?action=reject+22932

« previous php.notes (#32586) next »