<html><body>
<h1>Liste des utilisateurs</h1>
<table border="0" cellspacing="5">
<tr><th>UNTIS</th><th>Nom</th><th>Spécialité</th><th>mdp</th></tr>
<?
$host = "localhost";
$user = "t2if";
$pass = "t2if";
$db = "t2if";
$conn = mysql_connect("$host", "$user", "$pass") or die ("Unable to connect to database.");
mysql_select_db("$db", $conn);
$result = mysql_query("SELECT * FROM profs",$conn);
while ($row = mysql_fetch_row($result)) {
echo "<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td><td>$row[3]</td></tr>";
}
mysql_close($conn);
?>
</table>
</body></html>