Bonjour
je n'arrive pas avoir la liste des elements de ma table, c'est uniquement l'entete du tableau avec une ligne vierge qui est affichée et pourtant il ya au moins 5 enregistrements dans la table$

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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<htm>
<head>
<title>::::: TP PHP :::::</title>
</head>
<body>
<table width="100%" border="1"    style="border: double">
<tr>
<td width="20%"> Nom</td>
<td width="20%"> Prenom</td>
<td width="20%"> Adresse</td>
<td width="20%"> Code Postal</td>
<td width="20%"> Telephone</td>
<td width="20%"> Region</td>
<td width="20%"> sexe</td>
<td width="20%"> email</td>
<td width="20%"> photo_id</td>
</tr>
<?
$nom=$_GET['nom'];
$prenom=$_GET['prenom'];
$adresse=$_GET['adresse'];
$cp=$_GET['cp'];
$telephone=$_GET[telephone];
$region=$_GET['region'];
$sexe=$_GET[sexe];
$email=$_GET[email];
 
mysql_connect("localhost","root","") or die(" Echec de connexion au serveur de la BD");
 
$q="select nom,prenom,adresse,cp,telephone,region,sexe,email,photo_id from personne order by nom";
$x=mysql_select_db("info",$q);
while ($r = mysql_fetch_row($x))
{
?>
<tr>
<td width="20%"> <? echo $r[0] ?> </td>
<td width="20%"> <? echo $r[1] ?> </td>
<td width="20%"> <? echo $r[2] ?> </td>
<td width="20%"> <? echo $r[3] ?> </td>
<td width="20%"> <? echo $r[4] ?> </td>
<td width="20%"> <? echo $r[5] ?> </td>
<td width="20%"> <? echo $r[6] ?> </td>
<td width="20%"> <? echo $r[7] ?> </td>
<td width="20%"><src href="<? echo $r[8] ?>" /> </td>
</tr>
<?
}			  
?>
</table>
</body>
</hmtl>