Database connection php mysql code
$servername = “localhost”;
$username = “username”;
$password = “password”;
$conn = mysql_connect($servername, $username, $password);
To select a database
mysql_select_db($con,”mydatabse”);
Tutorialshore
Database connection php mysql code
$servername = “localhost”;
$username = “username”;
$password = “password”;
$conn = mysql_connect($servername, $username, $password);
To select a database
mysql_select_db($con,”mydatabse”);