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. Quote Link to comment 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? Quote Link to comment 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/ 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.