I have a sql query from which i ask to retrieve the values from the table. And now i want to change the $row to $news[0] (beeing 0 the news' id). How can I do that without having to set each one case by case?
while ($row = mysql_fetch_object ($res))
{
$news=array();
$news[$row['id']]=$row;
}
mysql_free_result ($res);
This doesn't work