How to create php Connection with Server and Database

Mysql Connection



There are Different Methods to make connection to Database but below is the easiest way to connect with server and database..
We try our best in providing the easiest syntax for all programming platform .

Syntax:

mysql_connect("ServerName","username","password");
mysql_select_db("DatabaseName");

For Example:

mysql_connect("localhost","root","");
mysql_select_db("DatabaseName");