Re: Building array ?
| From: | Brian V Bonini | Date: | Wed, 18 May 2005 17:32:53 +0000 |
| Subject: | Re: Building array ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215506@lists.php.net to get a copy of this message | ||
On Wed, 2005-05-18 at 12:00, Paul Nowosielski wrote:
> 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?
$uidToAdmin[] = $row["user_id"];
??????