note 22932 deleted from function.mysql-fetch-object by didou
| From: | didou@php.net | Date: | Sat, 17 May 2003 20:35:50 +0000 |
| Subject: | note 22932 deleted from function.mysql-fetch-object by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48236@lists.php.net to get a copy of this message | ||
Note Submitter: callaghan666@hotmail.com
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");