note 24370 deleted from function.mysql-fetch-object by didou
| From: | didou@php.net | Date: | Sat, 17 May 2003 20:36:04 +0000 |
| Subject: | note 24370 deleted from function.mysql-fetch-object by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48238@lists.php.net to get a copy of this message | ||
Note Submitter: Ravi_at_WebmasterInABox.net
Actuall, this worked fine for me too.
$rs = mysql_query("select * from table");
$obj = mysql_fetch_object($rs);
$obj->field;
You don't have to necessarily use the column names for this to work.