note 31890 deleted from function.mysql-fetch-assoc by alindeman
| From: | alindeman@php.net | Date: | Sat, 17 May 2003 19:45:05 +0000 |
| Subject: | note 31890 deleted from function.mysql-fetch-assoc by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48224@lists.php.net to get a copy of this message | ||
Note Submitter: msaari@iki.fi
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.
}