chronmar Posted April 9, 2006 Share Posted April 9, 2006 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_2IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII[email protected] I yes I no Quote Link to comment https://forums.phpfreaks.com/topic/6962-solved-mysqlphp-display-results-help/ Share on other sites More sharing options...
Barand Posted April 9, 2006 Share Posted April 9, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/6962-solved-mysqlphp-display-results-help/#findComment-25306 Share on other sites More sharing options...
chronmar Posted April 9, 2006 Author Share Posted April 9, 2006 thank you very much! Quote Link to comment https://forums.phpfreaks.com/topic/6962-solved-mysqlphp-display-results-help/#findComment-25308 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.