Mysql_fetch_array() expects parameter 1
Fermé
merlyone
Messages postés
25
Date d'inscription
vendredi 12 mars 2010
Statut
Membre
Dernière intervention
15 novembre 2011
-
1 nov. 2011 à 00:43
Gauthier - 8 juin 2020 à 07:28
Gauthier - 8 juin 2020 à 07:28
A voir également:
- Mysql_fetch_array() expects parameter 1 to be resource, boolean given in
- Press esc in 1 seconds to skip startup.nsh any other key to continue ✓ - Forum Windows 10
- You don't have permission to access this resource ✓ - Forum Réseaux sociaux
- Aux in - Forum Audio
- Dc in - Forum Audio
- Deco in paris avis ✓ - Forum Consommation & Internet
1 réponse
jojo673
Messages postés
210
Date d'inscription
lundi 19 septembre 2011
Statut
Membre
Dernière intervention
9 avril 2014
44
1 nov. 2011 à 01:18
1 nov. 2011 à 01:18
mysql_fetch_array() prend comme paramètre la réponse de mysql_query(), hors ici une requête est passé en paramètre... il faut donc faire :
$reponse = mysql_query($req) or die('Erreur SQL !'.$req.'<br>'.mysql_error()); while($lignes=mysql_fetch_array($reponse)) ...
1 nov. 2011 à 02:57
8 déc. 2015 à 22:54
8 juin 2020 à 07:28