Try this instead:

WHILE ($fetch = mysql_fetch_array($sql))
   {
   echo $fetch['email'] . "<br>";
   }

HTH

~PT~

klikmaker wrote:

> $fetch = mysql_fetch_array($sql);
> 
> foreach ($fetch as $to)
> {
> echo "$to<br>";
> }
> ?>
> 



The PHP_mySQL group is dedicated to learn more about the PHP_mySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to