note 24301 rejected from function.list by maxim
| From: | maxim@php.net | Date: | Mon, 12 Aug 2002 19:55:28 +0000 |
| Subject: | note 24301 rejected from function.list by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34891@lists.php.net to get a copy of this message | ||
An example of list in combination with MySQL:
<?
$query = "SELECT field1,field2,field3 FROM table";
$exec = mysql_query($query)
while(list($field1,$field2,$field3) = mysql_fetch_array($exec)) {
// etc..
echo $field1;
}
?>
I always use this method when im not using asterisks(*)
mayb u find it usefull for urself ;)