Jump to content


Photo

read the list of column names into a recordset


  • Please log in to reply
1 reply to this topic

#1 vauneen

vauneen
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 31 October 2003 - 02:51 PM

hi,
i need to read the column headings (not the values in them) of a certain MySQL table into a recordset using PHP, does anyone know how/if i can do it?

vauneen

#2 vauneen

vauneen
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 31 October 2003 - 03:10 PM

just figured it out, sorry, posted too soon.

this seems to be working:
SHOW FIELDS FROM databasename.tablename

vauneen




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users