naveenbj Posted January 21, 2008 Share Posted January 21, 2008 Hello Friends, here is my question so is anyonecan help me will be highly appriciated!! How to write php code to retrive data from the table and show in browser --------------- In this question what i hav is # I have one form and im able to send data in mysql table. Nj Quote Link to comment https://forums.phpfreaks.com/topic/87046-php-code-to-retrive-data-from-the-table-and-show-in-browser/ Share on other sites More sharing options...
adam291086 Posted January 21, 2008 Share Posted January 21, 2008 well you will need something like $result = mysql_query( " SELECT * FROM `table name` ") or die('Query failed. ' . mysql_error()); while($row = mysql_array($result) { $a = ['database_feild'] } echo $a Quote Link to comment https://forums.phpfreaks.com/topic/87046-php-code-to-retrive-data-from-the-table-and-show-in-browser/#findComment-445130 Share on other sites More sharing options...
naveenbj Posted January 21, 2008 Author Share Posted January 21, 2008 well you will need something like $result = mysql_query( " SELECT * FROM `table name` ") or die('Query failed. ' . mysql_error()); while($row = mysql_array($result) { $a = ['database_feild'] } echo $a Thanks for reply!! one simple and foolish question if you dont mind that i had a similar script but i jst want to know about field?? I mean what fields i have to mention and how .If you can place any example for me it would be a vry gd help for me. -------------- Regards, Nj Quote Link to comment https://forums.phpfreaks.com/topic/87046-php-code-to-retrive-data-from-the-table-and-show-in-browser/#findComment-445346 Share on other sites More sharing options...
revraz Posted January 21, 2008 Share Posted January 21, 2008 That depends on your DB field names. Which field name do you want to display? Quote Link to comment https://forums.phpfreaks.com/topic/87046-php-code-to-retrive-data-from-the-table-and-show-in-browser/#findComment-445350 Share on other sites More sharing options...
naveenbj Posted January 22, 2008 Author Share Posted January 22, 2008 That depends on your DB field names. Which field name do you want to display? Thanks Buddy Nj Quote Link to comment https://forums.phpfreaks.com/topic/87046-php-code-to-retrive-data-from-the-table-and-show-in-browser/#findComment-445809 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.