dongzhucha3999 2011-02-14 16:56
浏览 127

“解析错误:语法错误,第5行的C:\ xampp \ htdocs \ PP \ login.php中的意外T_CONSTANT_ENCAPSED_STRING”[关闭]

I'm getting this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\PP\login.php on line 5

<?php

    $connect = mysql_connect("localhost","root","") or die("cannot connect");
    extract($_POST);

    $query = "select * from user where username='".$userp."' and password='".$pwd."'";
    $res = mysql_query($query,$connect) or die(mysql_error() . "Query FAIL.");
    $exist = mysql_num_rows($res);

    if($exist == 1)
        header("Location: user.php);

 ?>
  • 写回答

2条回答 默认 最新

  • dragon87836215 2011-02-14 16:57
    关注
    header("Location: user.php);
                              ^
    

    Missing a close quote...

    评论

报告相同问题?