Does anyone know whats wrong with this?, the else is echo'd even if credentials are correct
include("includes/dbconn.php");
// username and password sent from form
$username=$_POST['username'];
$password=$_POST['password'];
$sql=("SELECT * FROM customers WHERE email ='.$username.' and password='.$password.'");
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
session_register("username");
session_register("password");
header("location:login_success.php");
} else {
echo "Wrong Username or Password";
}