Bonjour,
J'ai une erreur sur une requete SQL que voici :
et voici l'erreur qu'il me renvoit :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 foreach($clients as $id_client => $value){ $req = "SELECT SUM(verifications.tps) AS tps_total_backup FROM verifications INNER JOIN clients ON verifications.id_client = clients.id_client WHERE clients.nom_client = '$clients[$id_client]['nom_client']' "; $resultat = requete($req); while($donnees = mysql_fetch_array($resultat)) { echo $donnees['tps_total_backup'].'<br />'; } }
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'nom_client']'' at line 1
Pouvez-vous m'aider ??
Partager