I am trying to ad a login for my site! Everything went fine except the log.php.... I keep getting
here is the log.php
Code:
[B]Parse error[/B]: syntax error, unexpected T_STRING in [B]/home/bigbucks/public_html/log.php[/B] on line 11
here is the log.php
Code:
include ("functions.php");
sqlcon();
$user = $_POST['user'];
$pass = $_POST['pass'];
$result = mysql_query("SELECT * FROM users WHERE username='$user' and password='$pass'");
$count = mysql_num_rows($result);
if($count == "1")
(
session_register("loggedin")
header("location: check.php"); <<<Line 11
) else {
echo "Could no log you in.";
}
?>