Using Array From Database<

windows

Guest
Hi,
I have a mySQL database table with the column "features". This column contains the following data

feature 1 here.|feature 2 here.|feature 3 here.

I want to put the above into an array so that I can display it in a list. How would I do this? I know I can use explode() but I don't know how to work with it if the data is in a database. Any help in this is appreciated.basic stuff


$select = mysql_query("SELECT features FROM table ");
while ($row = mysql_fetch_array($select)){
// $rows will be the array
$your_array[] = $rows['features'];
}

then you can do whatever you want with the array.
 
Back
Top