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
| <html>
<head>
<title><? echo $titre_fenetre;?></title>
</head>
<body>
<center>
<h1><? echo $titre_page;?></h1>
<p><? echo $sous_titre;?></p>
<form method="post">
<p>
<select>
<?php
$connectionSQL;
$selectionDB;
//mysql_query("INSERT INTO $nom_table VALUES ('','TEST DE TITRE','TEST DE CONTENU')") or mysql_error();
$liste=mysql_query("SELECT * FROM $nom_table") or mysql_error();
while ($resultat=mysql_fetch_array($liste)){
echo "<option value=" .$resultat['ID']. ">".$resultat['ID'].") " .$resultat['Titre']."</option>\n";
}
echo '</select><input type="submit" value="Choisir" /></p></form><hr style="width: 100%; height: 2px;"></center>';
echo "resultat ID :" .$resultat['ID'];
echo "<br>resultat Titre : " .$resultat['Titre'];
echo "<br>resultat : " .$resultat;
echo "<br>Liste : " .$liste;
mysql_close();
?>
</body>
</html> |
Partager