Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\rede-social\login.php on line 46
<?php
include("db.php");
if(isset($_POST['login'])){
$email = $_POST['email'];
$pass = $_POST['pass'];
$verifica = mysql_query("SELECT * FROM users WHERE email = '$email'
If (mysql_num_rows($verifica)<=0) {
echo '<h3>Email ou Senha Incorretos!</h3>';
}else{
setcookie('login',$email);
header('location: ./');
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>CloseFriend - Fazer Login</title>
<link href='https://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<style type='text/css'>
*{margin:0;padding:0;font-family: Arial;}
body{text-align: center;}
.logo{font-family: Lobster;color:#000000;font-size: 50px;margin:20px 0;}
form{margin:20px 0;}
input[type='text'],form input[type='password']{width:250px;height:40px;border:1px solid #999;padding:0 5px;border-radius:4px;margin:8px 0;font-size:17px;}
input[type='submit']{width:260px;height:40px;border:1px solid #999;padding:0 5px;border-radius:4px;margin:8px 0;font-size:17px;color:#fff;font-weight:bold;background:#999;font-size:17px;cursor:pointer;}
form h3{margin:20px 0;color:#999}
form a{color:#000;text-decoration: none;}
</style>
</head>
<body>
<h1 class='logo'>CloseFriend</h1>
<form method='POST'>
<h2>Acessar sua conta</h2>
<input type='email' placeholder='Digite seu E-mail'><br />
<input type='password' placeholder='Senha'><br />
<input type='submit' value=' Login'>
</form>
<h3>Não tem uma conta? <a href='login.php'>Criar uma conta</a></h3>
</body>
</html>
mysql_query("SELECT * FROM users WHERE email = '$email'
falta um);
, erro ao colocar no site ou está assim mesmo?if
em minusculas por consistência.