1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
if (empty($titre_statut))
{
echo 'Veuillez nous indiquer votre Titre / statut.';
}
Etc ...
else
{
$db = mysql_connect('localhost', '...', '...') or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 1 - Page : index.php?page=creation_espace_perso</span>');
mysql_select_db('base_utilisateurs',$db) or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 2 - Page : index.php?page=creation_espace_perso</span>');
$identifiant_de_connexion=addslashes(htmlentities($_POST['identifiant_de_connexion']));
$mot_de_passe_de_connexion=addslashes(htmlentities($_POST['mot_de_passe_de_connexion']));
$verification_existant=mysql_query("SELECT * FROM base_utilisateurs WHERE $identifiant_de_connexion='identifiant_de_connexion' && $mot_de_passe_de_connexion='mot_de_passe_de_connexion'");
if (mysql_num_rows($verification_existant)>=1) <<<<<<<<<<<<< LIGNE 220
{
echo 'L\'identifiant ou le Mot de passe que vous avez saisi<br>est déjà utilisé par un autre utilisateur.</br>Veuillez saisir un Identifiant et Mot de passe différent.';
}
else
{
mysql_select_db('newsletters',$db) or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 3 - Page : index.php?page=creation_espace_perso</span>');
$sql_base_utilisateurs = "INSERT INTO base_utilisateurs (id, titre_statut, nom, prenom, jour_de_naissance, mois_de_naissance, annee_de_naissance, adresse, code_postal, ville, commune, pays, autre_pays, telephone_residentiel, telephone_mobile, identifiant_de_connexion, mot_de_passe_de_connexion, confirmer_mot_de_passe_de_connexion, adresse_email, confirmer_adresse_email, accord_ou_desaccord_pour_transmition, avertissements_legaux_et_c_g_u, different_entreprise_immobilier, antirobots)
VALUES('', '$titre_statut', '$nom', '$prenom', '$jour_de_naissance', '$mois_de_naissance', '$annee_de_naissance', '$adresse', '$code_postal', '$ville', '$commune', '$pays', '$autre_pays', '$telephone_residentiel', '$telephone_mobile', '$identifiant_de_connexion', '$mot_de_passe_de_connexion', '$confirmer_mot_de_passe_de_connexion', '$adresse_email', '$confirmer_adresse_email', '$accord_ou_desaccord_pour_transmition', '$avertissements_legaux_et_c_g_u', '$different_entreprise_immobilier', '$antirobots')" or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 4 - Page : index.php?page=creation_espace_perso</span>');
mysql_select_db('newsletters',$db) or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 5 - Page : index.php?page=creation_espace_perso</span>');
$sql_newsletters = "INSERT INTO base_utilisateurs (id, choix_newsletters)
VALUES('', '$choix_newsletters')" or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 6 - Page : index.php?page=creation_espace_perso</span>');
mysql_query($sql_base_utilisateurs) or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 7 - Page : index.php?page=creation_espace_perso</span>');
mysql_query($sql_newsletters) or die ('Une erreur est apparue !!!<br></br>Merci de bien vouloir contacter notre service technique en <a href="index.php?page=informations_societee" title="Informations sociétée" target="_blank">cliquant ici</a>.<br></br><span class="texte_attention_message_erreur">Code erreur : 8 - Page : index.php?page=creation_espace_perso</span>');
{
echo "<script language='javascript'>";
echo 'document.location.href= "index.php?page=premiere_connexion_espace_perso"';
echo "</script>";
}
mysql_close();
}
}
?> |
Partager