Mysql Show SQL

From: Date: Tue, 13 Mar 2001 20:07:45 +0000
Subject: Mysql Show SQL
Groups: php.general 
Request: Send a blank email to php-general+get-43706@lists.php.net to get a copy of this message
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. <?php require("Connection.php"); $query="Show Columns from Inventory"; $result= mysql_query($query); while ($row = mysql_fetch_row($result)); { for ($i =1;$i<mysql_num_fields($result);$i++) {echo $row[$i]; }} ?> Thanks Mike mpeloso@princeton.edu

« previous php.general (#43706) next »