Re: data loop timeout...

From: Date: Wed, 11 Oct 2000 09:54:53 +0000
Subject: Re: data loop timeout...
Groups: php.general 
Request: Send a blank email to php-general+get-19553@lists.php.net to get a copy of this message
Well... I think you should remove all the "'s you have around the functions... eg. mysql_query... it's a function call... we want the values to returned to query... and not the exact value to be stored : "mysql_query($select)"; in the var... so remove them and try... --- Dallas Kropka <dallask@firstworld.net> wrote: > 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. > ===== To Find Out More About Me : http://mukul.tsx.org/ __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/

« previous php.general (#19553) next »