note 31890 added to function.mysql-fetch-assoc

From: Date: Thu, 08 May 2003 03:49:34 +0000
Subject: note 31890 added to function.mysql-fetch-assoc
Groups: php.notes 
Request: Send a blank email to php-notes+get-47669@lists.php.net to get a copy of this message
I've found out that extract() is a good partner for mysql_fetch_assoc() and thought it would be worth mentioning here. while ($row = mysql_fetch_assoc($resource)) { extract($row); // And now you can use all the attribute names as // variables in a very easy and useful way. } -- http://www.php.net/manual/en/function.mysql-fetch-assoc.php http://master.php.net/manage/user-notes.php?action=edit+31890 http://master.php.net/manage/user-notes.php?action=delete+31890 http://master.php.net/manage/user-notes.php?action=reject+31890

« previous php.notes (#47669) next »