Rien
au cas ou je te renvoie le code entier de la page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" media="screen" href="style.css">
<title>Document sans titre</title>
</head>
<body>
<table border="1" bgcolor="" width="100%">
<tr>
<td class="tableaugauche" >
<font face="@Arial Unicode MS" size="6"><b><div align="center">Mon encyclopédie Informatique</div></b></font>
</td>
</tr>
</table>
<table border="1" bgcolor="" width="100%">
<tr>
<td class="tableaugauche" width="">
<FORM ACTION="encyc.php" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<SELECT NAME="Categorie" >
<OPTION value="1">Dossiers Spéciaux
<OPTION value="2">Courrier des lecteurs
<OPTION value="3">Fiches Techniques
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Envoyez">
</DIV>
</form>
<?php
// connexion à la base
$Host = "localhost";
$User = "root";
$Password = "antic";
$Database = "micro";
$idConnect = mysql_connect( $Host, $User, $Password)
or die( "Connexion impossible.");
$db = mysql_select_db( $Database, $idConnect)
or die( "Accès base impossible.");
if(isset($_POST['Categorie'])) $Categorie=$_POST['Categorie'];
else $Categorie="";
if(isset($_POST['Article']))
$tmp = $_POST['Article'];
else
$tmp = "";
$image = "";
// Requête SQL
$rqSql = "SELECT Id,Titre,Page,Logiciel FROM article where CodeCat=$Categorie";
// Exécution de la requête
$result = mysql_query( $rqSql, $idConnect)
or die( "Pour obtenir la liste des articles veuillez sélectionner une catégorie");
$liste2="<select name='Article' >";
$liste2 .="<option value=0> choisissez un article</option>";
while ( $row = mysql_fetch_array( $result)) {
// $row est un tableau associatif
// les éléments sont «indicés» par les noms
// des colonnes. Je préfère cette technique à celle
// des indices numériques..on ajoute une colonne..
$Id = $row["Id"];
$Titre = $row["Titre"];
$Page = $row["Page"];
if($Id = $tmp)
$image = $Page;
$Logiciel = $row["Logiciel"];
$liste2 .="<option value='$Id'>$Titre </option>";
}
$liste2 .="</select>";
print '<form method="POST" action="encyc.php">';
print $liste2;
print '<INPUT TYPE="hidden" NAME="Categorie" VALUE="'.$Categorie.'">';
print '<INPUT TYPE="SUBMIT" NAME="envoie" VALUE="Affichez">';
print '</form>';
mysql_close( $idConnect);
?>
</td>
</tr>
</table>
<table border="1" width="100%">
<tr>
<td class="tableaugauche">
<?php
if( $image != "" )
{
echo $image."<BR>";
}
else
echo "pas d'image choisie...";
?>
</td>
</tr>
</table>
</body>
</html>