prepare("SELECT * FROM user WHERE login = ? OR mail = ?"); $stmt->bind_param("ss", $login, $mail); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows == 0) { $stmt = $db->prepare("INSERT INTO user (login, mail, nom, prenom, genre, mdp, Role) VALUES (?, ?, ?, ?, ?, ?, ?)"); $stmt->bind_param("sssssss", $login, $mail, $nom, $prenom, $genre, $password_hash, $role); if ($stmt->execute()) { header('Location: connexion.php'); exit(); } else { die("Erreur : " . $stmt->error); } } else { $existant = $result->fetch_assoc(); if ($existant['login'] == $login) { $error_verif = "Ce login est déjà utilisé"; } else if ($existant['mail'] == $mail) { $error_verif2 = "Cette adresse mail est déjà utilisée"; } } $stmt->close(); } ?> Inscription - Jeux Olympiques

Page d'inscription

Inscription




$error_verif
";} ?>



$error_verif2";} ?>





















Vous possédez déjà un compte ?
Connectez-vous !