Probleme php
Fermé
HotSkill
Messages postés
65
Date d'inscription
mardi 1 janvier 2008
Statut
Membre
Dernière intervention
26 septembre 2010
-
2 oct. 2008 à 02:37
Ricky38 Messages postés 4349 Date d'inscription samedi 15 mars 2008 Statut Contributeur Dernière intervention 2 novembre 2013 - 2 oct. 2008 à 04:42
Ricky38 Messages postés 4349 Date d'inscription samedi 15 mars 2008 Statut Contributeur Dernière intervention 2 novembre 2013 - 2 oct. 2008 à 04:42
A voir également:
- Probleme php
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Bouton php - Forum PHP
- \R php ✓ - Forum PHP
- Php alert - Forum PHP
1 réponse
Ricky38
Messages postés
4349
Date d'inscription
samedi 15 mars 2008
Statut
Contributeur
Dernière intervention
2 novembre 2013
1 460
2 oct. 2008 à 04:42
2 oct. 2008 à 04:42
salut,
le $rq ne serait pas plutot :
$nom_d_utilisateur = mysql_real_escape_string(htmlspecialchars($_POST['nom_d_utilisateur'])); $mot_passe = mysql_real_escape_string(htmlspecialchars($_POST['mot_passe'])); $mot_de_passe = mysql_real_escape_string(htmlspecialchars($_POST['mot_de_passe'])); $rq = "SELECT id_utilisateur FROM utilisateur WHERE (nom_d_utilisateur= $nom_d_utlisateur AND mot_de_passe=PASSWORD ('mot_passe'))"; $result = mysql_query($rq); $nb = mysql_num_rows($result);
le $rq ne serait pas plutot :
$rq = "SELECT id_utilisateur FROM utilisateur WHERE nom_d_utilisateur= $nom_d_utlisateur="$_POST['nom_d_utilisateur']" AND mot_passe="$_POST['mot_passe']"";