You are here: Re: Building array ? « PHP « IT news, forums, messages
Re: Building array ?

Posted by "rush" on 10/20/92 11:16

"Paul Nowosielski" <paul@celebrityaccess.com> wrote in message
news:1116432032.6112.60.camel@hptux.celebrityaccess.com...
> 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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация