为什么我在config.php的第3行收到此语法错误? syntax error, unexpected '$username' (T_VARIABLE) in
这是我的config.php文件:
<?
$host='localhost';
$username="xxxxxxx";
$dbname="xxxxxxx";
$password="xxxxxxx";
$mysqli = new mysqli($host,$username,$password,$dbname);
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
?>
答案 0 :(得分:-1)