This connection seems to be failing. not sure why. Just trying to make this connection work so the rest of the project works.
<?php
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "david_schema";
// Create connection
$connection = mysql_connect('$servername', '$username', '$password');
// Check connection
if (!$connection){
die("Database Connection Failed" . mysql_error());
}
$select_db = mysql_select_db('$dbname');
if (!$select_db){
die("Database Selection Failed" . mysql_error());
}
?>