Array from database table

From: Date: Mon, 15 Nov 2004 04:49:01 +0000
Subject: Array from database table
Groups: php.general 
Request: Send a blank email to php-general+get-202012@lists.php.net to get a copy of this message
How do I get the data from a mysql database into and array that looks like this Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 ) The table has three fields but I only need the data from one field. $query="SELECT amenityID FROM property_amenity where listingId = '$listingId'";

« previous php.general (#202012) next »