salut juste avoir une aide de votre part.Voici mon code:
premier fichier:liste.php
Code PHP : 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
<?php
require_once("Iservice.php");
$requete="SELECT reference,prix  FROM article ";
$resultat=mysql_query($requete);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
</head>
 
<body>
 
<table width="600" border="1" cellspacing="0" cellpadding="5">
  <tr>
    <td>Référence</td>
    <td>Prix</td>
    <td>Voir la fiche</td>
  </tr>
  <?php while($article=mysql_fetch_array($resultat))  { ?>
  <tr>
    <td><?php echo $article['reference']; ?></td>
    <td><?php echo $article['prix']; ?></td>
     <td><a href="fiche.php"? reference <?php echo $article['reference'];?>"</a>Voir</td>
    </tr>
  <?php } ?>
</table>
 
 
</body>
</html>

2eme fichier:fiche.php
Code PHP : 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
<?php
require_once("Iservice.php");
$requete="SELECT * FROM article where reference ='".$_GET['reference']." '";
$resultat=mysql_query($requete);
$articles=mysql_fetch_array($resultat);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
</head>
 
<body>
 
<table width="600" border="1" cellspacing="0" cellpadding="5">
 
 <tr>
    <td>Référence</td>
    <td><?php echo $articles['reference']; ?></td>
  </tr>
  <tr>
    <td>Prix</td>
    <td><?php echo $articles['prix']; ?></td>
  </tr>
  <tr>
    <td>Description</td>
    <td><?php echo $articles['description']; ?></td>
  </tr>
  <tr>
    <td>Famille</td>
    <td><?php echo $articles['familleID']; ?></td>
  </tr>
</table>
<img  src="image/acces.png" > 
 
</body>
</html>
Quand j’exécute voici le message qui s'affiche:

Notice: Undefined index: reference in E:\xampp\htdocs\test\fiche.php on line 3
j'ai vraiment besoin de votre aide