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);
?>