Shortcut for MySQL $variable = $row["variable"];?
| From: | Erica Douglass | Date: | Fri, 06 Oct 2000 02:25:26 +0000 |
| Subject: | Shortcut for MySQL $variable = $row["variable"];? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-18818@lists.php.net to get a copy of this message | ||
Hello,
Is there any kind of loop structure to tell PHP to make a variable for every row item returned from MySQL, instead of having to do this:
while ($row = mysql_fetch_array ($result)) {
$variable = $row["variable"];
$variable2 = $row["variable2"];
# etc, etc, for EVERY item...
};
I'd rather not make constants by using define().
Erica