Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want a sample pgm and that shows(take)data from a sql database in the webpage
Posted

1 solution

Anything you create with PHP is essentially dynamic. In particular, on the request from the client side, you can make a query, obtain data from database and generate the whole page in PHP code. This is what PHP is generally used for, as well as other server-side technologies.

Instead of asking for code, just try to do it, after reading some documentation. Please see:
http://php.net/manual/en/refs.database.php[^].

Be extra careful. Be aware of SQL injection:
http://xkcd.com/327[^].

Here is it explained in further detail: http://en.wikipedia.org/wiki/SQL_injection[^].

—SA
 
Share this answer
 
Comments
Joezer BH 2-Oct-13 8:10am    
5ed!
Sergey Alexandrovich Kryukov 2-Oct-13 11:43am    
Thank you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900