[thelist] PHP/mysql - What am I missing?

CDitty mail at redhotsweeps.com
Wed Jun 6 21:22:28 CDT 2001

I am trying to loop through all the users in my users table, but no matter 
what I try, it will only get the first user.  What am I missing?  It seems 
sooooo simple.

$sql = mysql_query("select * from users") or die(mysql_error());
while($row = mysql_fetch_array($sql)){
echo $row[0] . "<br>";


More information about the thelist mailing list