function SomeFunction()
{
$arrRow=array();
$res=mysql_query("SELECT Id FROM `table1`");
while ($row=mysql_fetch_assoc($res))
{
$arrRow[]=$row['Id'];
}
return $arrRow;
}
Anyway to directly have all rows of $row inserted into $arrRow ?
The method is similar - looping.
I was thinking in terms of getting the resultant row directly into an array without actually getting the rows one by one.
you mean like fetching the entire column... hmmm.. kinda dangerous, if they even supported it.. which I don't see any mysql functions php gives access to.. it could easily suck up a LOT of memory very fast..