data loop timeout...

From: Date: Wed, 11 Oct 2000 11:56:43 +0000
Subject: data loop timeout...
Groups: php.general 
Request: Send a blank email to php-general+get-19550@lists.php.net to get a copy of this message
ok, i have a connection, and Im trying to do a simple loop on a table. it bogs my system and crashes IE. could someone tell me what im doing to make it do this? code: echo( "<div align=\"center\"> <table width=\"75%\" border=\"1\"> <tr>"); $select = "SELECT * FROM perm"; $query = "mysql_query($select)"; while ($res = "mysql_fetch_object($query)") { $name = $res->name; $email = $res->email; $address = $res->address; $city = $res->city; echo ("<tr> <td>$name </td> <td>$email</td> <td>$address </td> <td>$city</td> </tr>" ); } echo( "</tr> </table> </div>"); NOTE: I have been up for way too long and had much too much coffiee to be doing this right now, so if there is some stupid error I appologize.

« previous php.general (#19550) next »