Jump to content


Photo

How to get field names from a query


  • Please log in to reply
1 reply to this topic

#1 Zeb

Zeb
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 October 2005 - 03:24 PM

While browsing I just thought of a problem I had recently but was unable to figure out.

I've written a routine that allows me to run a SELECT query from my site but I'd like to display the names of each field in the browser. At the moment I'm just dumping out the contents of whatever table I'm accessing and it'd be handy to see the table names.

Can this be done?

#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 19 October 2005 - 06:17 PM

mysql_fetch_field
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users