jenniferG Posted July 12, 2007 Share Posted July 12, 2007 How do we get a column listing from a mysql table? Thanks, Jennifer Link to comment https://forums.phpfreaks.com/topic/59662-column-listing/ 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 Link to comment https://forums.phpfreaks.com/topic/59662-column-listing/#findComment-296514 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.