Jump to content


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


**solved** MySQL/php display results help

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...


email I question_1 I question_2
i@i.com I yes I no

Share this post

Link to post
Share on other sites
See this reply

[a href=\"http://www.phpfreaks.com/forums/index.php?act=ST&f=12&t=90262&hl=&view=findpost&p=362398\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...ndpost&p=362398[/a]

Share this post

Link to post
Share on other sites


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.