Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

How do I optimize PHP database?
Please write a sample code for this database?
PHP
mysql_connect("localhost","rir_10r10","XtQznUF") or die(mysql_error()); 
mysql_select_db("rir_10r10") or die(mysql_error());

Thanks.
Posted
Updated 31-Jan-14 8:34am
v2
Comments
Sergey Alexandrovich Kryukov 31-Jan-14 14:24pm    
The question really does not make sense. How to optimize? what? why should anyone write any sample for you, for what purpose?
—SA
Zoltán Zörgő 31-Jan-14 16:35pm    
PHP database? That's new...
Killzone DeathMan 7-Feb-14 4:47am    
Give him a break, he mean MySQL Database connecting throught PHP, and the "optimize" should be write a class with the basic connections.
Thats what I think :P

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