Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /****************
- SOLUTION 1
- ****************/
- $timestamp = time();
- $REQinscription = $CNCTacc->prepare('INSERT INTO player_accounts(username, password, mail, question, reponse, gmlevel, banned, points, timestamp, IDSCadeaux) VALUES(:account, :password, :email, :question, :reponse, :gmlevel, :banned, :points, :timestamp, :IDSCadeaux)');
- $REQinscription->execute(array(
- 'account' => $account,
- 'password' => MD5($password),
- 'email' => $email,
- 'question' => $question,
- 'reponse' => $reponse,
- 'gmlevel' => 0,
- 'banned' => 0,
- 'points' => 0,
- 'timestamp' => $timestamp,
- 'IDSCadeaux' => 0));
- /****************
- SOLUTION 2
- ****************/
- $REQinscription = $CNCTacc->prepare("INSERT INTO player_accounts VALUES ('' , :account, :password, :email, :question, :reponse, :null, :null, :null, :null, 0, 0, 0, " . time() .", :null)");
- $REQinscription->bindValue(':account', $account, PDO::PARAM_STR);
- $REQinscription->bindValue(':password', MD5($password), PDO::PARAM_STR);
- $REQinscription->bindValue(':email', $email, PDO::PARAM_STR);
- $REQinscription->bindValue(':question', $question, PDO::PARAM_STR);
- $REQinscription->bindValue(':reponse', $reponse, PDO::PARAM_STR);
- $REQinscription->bindValue(':null', '', PDO::PARAM_NULL);
- $REQinscription->bindValue(':zero', $zero, PDO::PARAM_INT);
- /****************
- SOLUTION 3
- ****************/
- $REQinscription = $CNCTacc->prepare("INSERT INTO player_accounts VALUES ('' , :account, :password, :email, :question, :reponse, '', '', '', '', 0, 0, 0, " . time() .", '')");
- $REQinscription->execute(array('account' => $account,
- 'password' => MD5($password),
- 'email' => $email,
- 'question' => $question,
- 'reponse' => $reponse));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement