Results in array

From: Date: Tue, 27 Apr 2004 17:07:35 +0000
Subject: Results in array
Groups: php.general 
Request: Send a blank email to php-general+get-184788@lists.php.net to get a copy of this message
I want to interogate the database and the results to be placed into array. For now i have: $query = "SELECT product_id, brand_name, model_name FROM products WHERE product_id='$product_id'"; $result = mysql_query($query) or die("error in query - $query - ".mysql_error()); $results = mysql_num_rows($result); I want all athe results to be placed in an array named "models" and then i want to print all the results. How can i do that. PS. The results must be placed in an array. Regards...

« previous php.general (#184788) next »