note 34221 added to function.mysql-fetch-row
| From: | Thomas at rack1 dot php dot net | Date: | Fri, 18 Jul 2003 17:54:14 +0000 |
| Subject: | note 34221 added to function.mysql-fetch-row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52345@lists.php.net to get a copy of this message | ||
I like to use this function like this:
$sql = "select firstname, lastname from members";
$getmembers = mysql_query($sql);
while (list($firstname, $lastname) = mysql_fetch_row($getmembers)) {
echo "$firstname $lastname<br>\n";
}
this way I can pull out the fields in variables and it's easier to code cuz I'm lazy!
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-row.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34221
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34221&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34221&report=yes