I have a webshop and I can make it work using hand written arrays, no my question is how can I fill data from a dabatase into an array?
the normal array:
$items = array("item1", "item 2", "item 3",);
ok now let's say I fetch data from a database like this:
$result = mysql_query("select * from seminare WHERE catg=1 order by title desc")
while ($row = mysql_fetch_array($result))
{
print $row["title"];
}
how can I make that I fill in the "title" data into the array automatically? thanks!