Re: [PHP] brain cramp, ouch!

2002-05-17 Thread Robert Cummings
Robert Cummings wrote: > > Kelly Meeks wrote: > > > > Ok > > > > Let's say I'm querying a table, and looping thru the results: > > > > $connect=mysql_connect(host,user,pass); > > $thedb=mysql_select(database1); > > $thequery="select * from foo"; > > $theresult=mysql_query($thequery) or die (mysql

Re: [PHP] brain cramp, ouch!

2002-05-17 Thread Robert Cummings
Kelly Meeks wrote: > > Ok > > Let's say I'm querying a table, and looping thru the results: > > $connect=mysql_connect(host,user,pass); > $thedb=mysql_select(database1); > $thequery="select * from foo"; > $theresult=mysql_query($thequery) or die (mysql_error()) > while ($output=mysql_fetch_asso

Re: [PHP] brain cramp, ouch!

2002-05-17 Thread Miguel Cruz
On Fri, 17 May 2002, Kelly Meeks wrote: > Let's say I'm querying a table, and looping thru the results: > > $connect=mysql_connect(host,user,pass); > $thedb=mysql_select(database1); > $thequery="select * from foo"; > $theresult=mysql_query($thequery) or die (mysql_error()) > while ($output=mysql_

[PHP] brain cramp, ouch!

2002-05-17 Thread Kelly Meeks
Ok Let's say I'm querying a table, and looping thru the results: $connect=mysql_connect(host,user,pass); $thedb=mysql_select(database1); $thequery="select * from foo"; $theresult=mysql_query($thequery) or die (mysql_error()) while ($output=mysql_fetch_assoc($theresult)){ do stuff here.. } Wh