Jump to content

**solved** MySQL/php display results help


chronmar

Recommended Posts

I am accessing a database with about 100 columns... is there a way to display the column name from the query as well as the data entered without hard coding each column name? so far all the querys I have done I specify the column name (i.e. $row['email'] or $row['question_1']) I was not sure if I could do an array with the column name as key and the data as value and print each out in a table. Please help if you can...



i.e.

email I question_1 I question_2
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
[email protected] I yes I no


Link to comment
https://forums.phpfreaks.com/topic/6962-solved-mysqlphp-display-results-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.