How to get the field name of a mysql table from a record in php?

  • Thread starter Thread starter GreenLeaf
  • Start date Start date
G

GreenLeaf

Guest
For example, lets say I had a table with 3 columns/field names:
Firstname Username Email

Now lets say the Username had the name "Maggy" in it. How can I using PHP determine the field name of its record. Or if the name "Molly" was in the database, how can I find what its field name is?

This would be get the field name from a record, not field name by array numbering.
 
Back
Top