Liste téléphonique triée par site<br />
<form action="ReponseSite.php">
<?
$dbhost="localhost";
$dblogin="root";
$dbpassword="";
$dbname="intranet";
mysql_connect($dbhost,$dblogin,$dbpassword);mysql_selectdb($dbname);
?>
<select name="liste1">
<? $requete3="select nom from site ORDER BY nom";
$reponse3 = mysql_query($requete3);
while ($row3 = mysql_fetch_array($reponse3)) { ?>
<option value="<? echo $row3["nom"]; ?>"><? echo $row3["nom"]; ?></option>
<? } ?>
</select>
<?
mysql_close();
?>
<input type="submit" value="OK"/>
</form>
<br><hr>
Liste téléphonique triée par service<br />
<form action="ReponseSociete.php">
<?
$dbhost="localhost";
$dblogin="root";
$dbpassword="";
$dbname="intranet";
mysql_connect($dbhost,$dblogin,$dbpassword);mysql_selectdb($dbname);
?>
<select name="liste3">
<? $requete3="select nom from societe ORDER BY nom";
$reponse3 = mysql_query($requete3);
while ($row3 = mysql_fetch_array($reponse3)) { ?>
<option value="<? echo $row3["nom"]; ?>"><? echo $row3["nom"]; ?></option>
<? } ?>
</select>
<?
mysql_close();
?>
<input type="submit" value="OK"/>
</form>
<hr>
Rechercher un nom dans la base de données "utilisateurs"
<form action="search.php">
<input type="text" name="nom" size=15 value="Utilisateur">
<input type="submit" value="search"/>
</form>
<br>
<hr>
</body>
</html>