AV1611 Posted July 31, 2007 Share Posted July 31, 2007 let's say you have a table that has some dates in it. The field is called DDATE select DDATE from table blah blah would return the data in the field. How can you write a query that would return the name of a field and not the data in the field? I hope that makes sense... (so $row[0] would return DDATE and not 2007-01-01, etc.) Link to comment https://forums.phpfreaks.com/topic/62722-solved-return-field-name/ Share on other sites More sharing options...
Wildbug Posted July 31, 2007 Share Posted July 31, 2007 SHOW COLUMNS FROM tablename; Link to comment https://forums.phpfreaks.com/topic/62722-solved-return-field-name/#findComment-312203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.