Google+

Tuesday, April 16, 2013

How to Connect Database - PHP

You know every body fright with connectivity.Actually no body knows when we want to connect our site with database then we just need only two lines.Those lines are very elementary.These are :-
[code]
$link= mysql_Connect("localhost","root","");
mysql_Select_db("database name",$link);
?>
[/code]
When you want to connect database with site then you would first create the database.Then you can connect with database.When you install php then php database automatcally installed with php.Just start all services of php and then click on the phpmyadmin.Then your browser will be open .


Source : http://phpwebdesigning.blogspot.in/

No comments:

Post a Comment