这种联系似乎失败了。不知道为什么。只是尝试使这个连接工作,以便项目的其余部分工作。
<?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());
}
?>
&#13;