Database connection php mysql code

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”);

Leave a Reply

Your email address will not be published. Required fields are marked *