-4
Folloing code。我有解析錯誤:我的Java腳本給php Web應用perse錯誤,我找不到
syntax error, unexpected '>' in C:\xampp\htdocs\login.php on line 54
此處腳本<script>window.open('welcome.php','_self')</script>
行是那一行。
<?php
mysql_connect("localhost","root","secret");
mysql_select_db("users_db");
if(isset($_POST['login'])){
$password=$_POST['pass'];
$email=$_POST['email'];
$check_user="SELECT * from users WHERE user_pass='$password' AND user_email='$email';
$run=mysql_query($check_user);
if(mysql_num_rows($run)>0){
echo "<script>window.open('welcome.php','_self')</script>";
}else{
echo "<script>alert('Email or password is incorrect!')</script>";
}
}
?>
Java是爲Javascript火腿是倉鼠 – Reimeus
嗨,也許你可以告訴我們你的源代碼,一些問候後:) – Max
'$ check_user =「SELECT * FROM用戶WHERE user_pass = '$密碼' AND user_email ='$ email';'=> '$ check_user =「來自用戶的SELECT * WHERE user_pass ='$ password'AND user_email ='$ email'」;' – Max