Hi!!
What I do is just this:
$_ar = array();
while($_field = mysql_fetch_row($_result))
{$_aloft["$_field[0]"] = "$_field[1]";}
while(list($_key,$_val) = each($_ar))
On 8/30/06, Christopher Watson <[EMAIL PROTECTED]> wrote:
I'm looking for a native method for taking all of the value
I'm looking for a native method for taking all of the values from one
column of a query result and creating an array of those values.
Procedurally, I'd tend to want to do this:
query("SELECT my_id FROM my_table");
while ($row = $query_result->fetchRow())
$my_id_array[] = $row['my_id'];
?>
Hec
2 matches
Mail list logo