note 24370 added to function.mysql-fetch-object

From: Date: Wed, 14 Aug 2002 13:41:57 +0000
Subject: note 24370 added to function.mysql-fetch-object
Groups: php.notes 
Request: Send a blank email to php-notes+get-34999@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. -- http://www.php.net/manual/en/function.mysql-fetch-object.php http://master.php.net/manage/user-notes.php?action=edit+24370 http://master.php.net/manage/user-notes.php?action=delete+24370 http://master.php.net/manage/user-notes.php?action=reject+24370

« previous php.notes (#34999) next »