I am attempting to store an email address into a database. The column is set to varchar, 200 length, utf8-unicode-ci. Whenever I try to insert data that has an "@" in it, nothing happens. It does not return an error and it nothing else submits. It's like nothing happened. It does work when I just use letters and numbers. Is there something i'm missing? I've stored emails addresses before, but I don't recall doing anything special.
Thank you.
the code for inserting the data.
$username = $_POST["user"];
$password = $_POST["pass"];
$email = $_POST["email"];
$friendCode = $_POST["friendCode"];
$rating = 0;
try{
$dbh = new PDO('mysql:host=localhost;dbname=5iv', "kmessner", "##########6");
$dbh->query('INSERT INTO users (username,password,email,friendcode,rating) VALUE ('.$username.','.$password.','.$email.','.$friendCode.','.$rating.')');
$dbh = null;
}
catch (PDOException $e){
print "Error!: " . $e->getMessage() . "<br/>";
die();
}