By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,462 Members | 785 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,462 IT Pros & Developers. It's quick & easy.

to retrieve 10 records values from db and display values in a table format

P: 3
friends i need a php code to retrieve 10 records from database and display values in a table by using php and my sql
Dec 20 '07 #1
Share this Question
Share on Google+
2 Replies


nathj
Expert 100+
P: 938
friends i need a php code to retrieve 10 records from database and display values in a table by using php and my sql
Hi bhargavi514,

This is really easy, you need to investigate the PHP MySQL functions to get your recordset.

Then you can loop through results and output the data to the screen using the PHP echo function.

This article, here on The Scripts is a great place to start.

It may even be that you can use AJAX for this.

However, I must say that's as helpful as I can be given that you have shown no evidence of helping yourself first. Have a go at writing some code and post back if you get stuck. Remember to post code and use the code tags.

Cheers
nathj
Ps people won't just write the code for you.
Dec 20 '07 #2

P: 38
if you want to learn how it is done ,, u should first read and read and read
after fishishing reading you should read more and more and try to do it alone ,
thats how things and and this is the best way to learn
Dec 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.