jenniferG Posted July 12, 2007 Share Posted July 12, 2007 How do we get a column listing from a mysql table? Thanks, Jennifer Quote Link to comment Share on other sites More sharing options...
thedarkwinter Posted July 12, 2007 Share Posted July 12, 2007 the sql statement is "SHOW COLUMNS FROM mytable" <?php $result = mysql_query("SHOW COLUMNS FROM mytable"); $row = mysql_fetch_fow($result); print_r($row); ?> Cheers, tdw Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.