1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<? $db = mysql_connect('localhost','root');
mysql_select_db('SERVICE_INFO',$db);
$req = "SELECT LIBELLE,CHEMIN FROM LOGITHEQUE ORDER BY LIBELLE";
$result = mysql_query($req) or die('Erreur SQL : '.mysql_error());
echo '<form method="post" name="list" action="'.$_SERVER['PHP_SELF'].'">';
echo '<select name="liste" >';
while ($val = mysql_fetch_array($result))
echo '<option value="'.$val['CHEMIN'].'">'.$val['LIBELLE'].'</option>';
echo '</select>';
echo'<input type="submit" value="Ok"></form>';
?> |