note 24370 modified in function.mysql-fetch-object by maxim
| From: | maxim@php.net | Date: | Wed, 14 Aug 2002 17:02:47 +0000 |
| Subject: | note 24370 modified in function.mysql-fetch-object by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35010@lists.php.net to get a copy of this message | ||
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.
--was--
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.
http://www.php.net/manual/en/function.mysql-fetch-object.php