array
| From: | Marco Aurélio | Date: | Mon, 12 Mar 2001 21:22:04 +0000 |
| Subject: | array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43555@lists.php.net to get a copy of this message | ||
Hello!!!
Please, assume I have the following mysql query:
function get_products() {
$result = mysql_query("select * from products");
while ($row = mysql_fetch_array($result)) {
$prod_id = $row["prod_id"];
$prod_name = $row["prod_name"'];
$prod_price = $row["prod_price"];
}
return $products;
}
The question:
Ok, my $products variable will be an array with all products ???
Regards,
marcoBR