我創建了一個phplogin名稱數據庫,但它給我一個錯誤錯誤數據庫連接
Parse error: syntax error, unexpected '=' in C:\xampp\htdocs\Login\log.php on line 7
我使用具有XAMP服務器版本XAMPP-win32-1.7.7-VC9的安裝程序
<?php
$username=$_POST['username'];
$password=$_POST['password'];
if($username&&$password)
{
connect = mysql_connect("localhost","root","root") or die ("couldn't connect");
mysql_select_db("phplogin") or die ("Couldn't find");
}
else
{
echo "you are in";
}
?>