Bonjour , j'ai un probléme , j'ai tester sur phpmyadmin :

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'
Il me donne :

id_client nom image
9 paterson 1
13 Truc much 5555
Se qui est normal .
================================================

Je le passe en php :

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>";
	}
?>
il me donne :

id=9,Nom: ,,
id=13,Nom: ,,
Je comprend pas ...