Re: assigning variables after one-to-many query

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

 



> what i would do is add it into an array:
> 
> $emails = Array();
> while ($row = mysql_fetch_array($result,MYSQL_NUM))
> {
>     $emails[] = $row[0];
> }
> 
> then u have an array with :
> 
> $emails[0] = bill@xxxxxxxxxxx
> $emails[1] =  bill@xxxxxxxxxx
> etc...
> 
> 

Thanks, Uzi!  This is exactly what I was looking for!

Rachel


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux