Re: Building array ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Paul Nowosielski" <paul@xxxxxxxxxxxxxxxxxxx> wrote in message
news:1116432032.6112.60.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> HI All,
>
> 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]");
>
>    // for debugging
>    echo "<br>UID $row[user_id]<BR>";
>    echo "<BR>AUID $uidToAdmin[0]";
> }
>
> So how can I continue adding to this array in the while loop?

 while($row=mysql_fetch_array($result)){
    // put user ID's into an array;
    $uidToAdmin[] .= $row[user_id];
}

rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux