As you can read in the title, I have a problem with my INSERT. I am working on a register page, so here is the code I have :
if ($AllGood) { $Data = $DB->prepare("INSERT into `users` (pseudo, email, password, skype, reg_date, rank, picture, reg_ip, last_ip, group) VALUES (':pseudo', ':email', ':password', ':skype', ':date', ':rank', ':picture', ':reg_ip', ':last_ip', ':group')"); $Data->bindParam(':pseudo', $pseudo, PDO::PARAM_STR); $Data->bindParam(':email', $email, PDO::PARAM_STR); $Data->bindParam(':password', $pswd, PDO::PARAM_STR); $Data->bindParam(':skype', $shit, PDO::PARAM_STR); $Data->bindParam(':date', $date, PDO::PARAM_STR); $Data->bindParam(':rank', $rank, PDO::PARAM_STR); $Data->bindParam(':picture', $shit, PDO::PARAM_STR); $Data->bindParam(':reg_ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR); $Data->bindParam(':last_ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR); $Data->bindParam(':group', $shit, PDO::PARAM_STR); $Data->execute(); $Data->closeCursor(); // End the connexion echo "YOU DONE PHP, GO TAKE A BREAK"; } The following code is perfectly executing to the last line. But when I go check in my DB I don't have anything :// ( I don't have a problem with the connection at all , everything is fine about it ).