Re: Array from database table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard wrote:

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 )


by using mysql_fetch_row() or mysql_fetch_array()

The table has three fields but I only need the data from one field.

$query="SELECT amenityID FROM property_amenity where listingId =
'$listingId'";





--
Raditha Dissanayake.
------------------------------------------------------------------
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/              | Drag and Drop Upload

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux