Bonjour , j'ai un probléme , j'ai tester sur phpmyadmin :
Il me donne :SELECT joueur_map.id_client, stat.nom, stat.image
FROM `joueur_map` , `stat`
WHERE joueur_map.id_client = stat.id_client
AND joueur_map.x = '1'
AND joueur_map.y = '1'
AND joueur_map.id_map = '1'
Se qui est normal .id_client nom image
9 paterson 1
13 Truc much 5555
================================================
Je le passe en php :
il me donne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 <?php //test SQL include("./conex.ini.php"); $sql="SELECT joueur_map.id_client , stat.nom , stat.image FROM `joueur_map`,`stat` WHERE joueur_map.id_client=stat.id_client AND joueur_map.x ='1' AND joueur_map.y = '1' AND joueur_map.id_map = '1';"; $res = mysql_query($sql); while($row=mysql_fetch_array($res)) { echo"id=$row[0],Nom:$raw[1] ,,$raw[2]<br>"; } ?>
Je comprend pas ...id=9,Nom: ,,
id=13,Nom: ,,
Partager