python72 Posted November 13, 2010 Share Posted November 13, 2010 I would like to echo field names in my table on webpage one by one. I know mySQL has "describe" function which will list the complete table, I am looking for a way to display each field name one by one with other stuff in between them like input field or description. Link to comment https://forums.phpfreaks.com/topic/218542-how-to-display-table-field-names/ Share on other sites More sharing options...
requinix Posted November 13, 2010 Share Posted November 13, 2010 Just pretend that DESCRIBE table is like a SELECT query: it has column names and rows of results. Or are you saying you don't know how to use PHP with a simple SQL query? Link to comment https://forums.phpfreaks.com/topic/218542-how-to-display-table-field-names/#findComment-1133730 Share on other sites More sharing options...
phppaper Posted November 13, 2010 Share Posted November 13, 2010 This should help: http://www.phpsuperblog.com/php/display-all-field-column-names-of-a-table-in-mysql-database/ Link to comment https://forums.phpfreaks.com/topic/218542-how-to-display-table-field-names/#findComment-1133741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.