I have similar scripts to this running perfectly well. When i take out the while loop it runs fine (evidently) but everytime i try to get something out of the db it takes forever and then mozilla gives me a download box. I am totally flummoxed so any help would be much appreciated:
include("conn.php");
$result = mysql_query("SELECT * FROM table");
while($row = mysql_num_rows($result));
{
echo $row['name'];
}