Problème de confirmation par email
- Accueil
- Forum
- Programmation
- PHP
- Problème de confirmation par email
![Rudelle65](/public/uploads/membres/avatars/min/666-306547da5e71c54b0e699836a5511e42.jpg)
Rudelle65 Le 25 avril 2016 à 17:46 (Édité le 25 janvier 2019 à 17:50)
j'ai suivit le tuto de PrimFx https://www.primfx.com/article/tuto-php-confirmation-par-mail-178 mais le compte ne s'inscrit pas dans la base de donner
Ma page de register: http://tweetbook.no-ip.org/register.php
Mon code: http://pastebin.com/d25mQqdW
l'email s'envoi bien
![Aendawan](/public/uploads/membres/avatars/min/1950-b218d844e9c8ea344a3cef4e9cfa9256.jpg)
Aendawan Le 25 avril 2016 à 19:23 (Édité le 1 janvier 1970 à 01:00)
![Rudelle65](/public/uploads/membres/avatars/min/666-306547da5e71c54b0e699836a5511e42.jpg)
Rudelle65 Le 25 avril 2016 à 20:22 (Édité le 1 janvier 1970 à 01:00)
[Mon Apr 25 20:17:39.287469 2016] [:error] [pid 3804:tid 1112] [client 192.168.1.19:51571] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uniqid' in 'field list'' in F:\\EasyPHP-Webserver-14.1b2\\www\\register.php:28\nStack trace:\n#0 F:\\EasyPHP-Webserver-14.1b2\\www\\register.php(28): PDOStatement->execute(Array)\n#1 {main}\n thrown in F:\\EasyPHP-Webserver-14.1b2\\www\\register.php on line 28, referer: http://192.168.1.22:8080/register.php
image de ma bdd:
![](https://i.imgur.com/4JhZ1mx.png)
![TheFlameflo](/public/uploads/membres/avatars/min/520-230555b776748b50ffadc7829163a97c.jpg)
TheFlameflo Le 25 avril 2016 à 20:26 (Édité le 1 janvier 1970 à 01:00)
Tu l'as probablement mentionnée dans ton code, mais elle n'existe pas ?
![Rudelle65](/public/uploads/membres/avatars/min/666-306547da5e71c54b0e699836a5511e42.jpg)
Rudelle65 Le 25 avril 2016 à 20:33 (Édité le 25 avril 2016 à 20:47)
![TheFlameflo](/public/uploads/membres/avatars/min/520-230555b776748b50ffadc7829163a97c.jpg)
TheFlameflo Le 25 avril 2016 à 21:53 (Édité le 1 janvier 1970 à 01:00)
Je ne me souviens pas qu'il ait mis un champ uniqid:
$insertmbr = $bdd->prepare("INSERT INTO membres(pseudo, mail, motdepasse, avatar, confirmkey, uniqid) VALUES(?, ?, ?, ?, ?, ?)");
Essaye d'aller revoir, tu comprendras peut-être pourquoi tu l'as mis là...
Bonne chance !