Re: [PHP] Mysql Show SQL

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 14:41, you wrote: > > $result= mysql_query($query); > > while ($row = mysql_fetch_row($result)); > > { > > for ($i =1;$i > {echo $row[$i]; > > }} > > ?> > > 2 problems. > > 1. Delete the ';' after the while loop. With that there the for loop > will never run. It will.

Re: [PHP] Mysql Show SQL

2001-03-14 Thread Jason Stechschulte
On Tue, Mar 13, 2001 at 03:07:45PM -0500, Mike wrote: > require("Connection.php"); > $query="Show Columns from Inventory"; > $result= mysql_query($query); > while ($row = mysql_fetch_row($result)); > { > for ($i =1;$i {echo $row[$i]; > }} > ?> 2 problems. 1. Delete the ';' after the while loop

[PHP] Mysql Show SQL

2001-03-13 Thread Mike
Im trying to use the SHOW syntax and the following code is returning nothing.The Table name is correct and there are records in the table (not that that should matter).I dont get an error. Thanks Mike [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai