Posted by Philip Hallstrom on 10/16/02 11:16
> I'm trying to build an array of user id's. This is the code I've written
> that does not work.
>
>
> while($row=mysql_fetch_array($result)){
> // put user ID's into an array;
> $uidToAdmin .= array ("$row[user_id]");
$uidToAdminArray[] = $row[user_id];
>
> // for debugging
> echo "<br>UID $row[user_id]<BR>";
> echo "<BR>AUID $uidToAdmin[0]";
> }
print_r($uidToAdminArray);
>
> So how can I continue adding to this array in the while loop?
>
> TIA
Navigation:
[Reply to this message]
|