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 34 35 36 37
|
<html>
<head>
<title>ascenseur</title>
</head>
<body>
<form method="POST" action="mot_de_passe.html">
<br><br>
<input type="submit" value="Monter" name="bouton1">
<input type="button" value="Descendre" name="bouton1">
</form>
<?
if($id=mysql_connect("localhost","root",""))
{
if($id_db=mysql_select_db("principales"))
{
echo"Succès de connexion";
}
else
{
die("Echec de connexion à la base");
}
mysql_close($id);
}
else
{
die("Echec de connexion au serveur de base de donnée");
}
$SQL="INSERT INTO `brownie` ( `cmd` , `date` , `user` ) VALUES ('monter', '0000-00-00 00:00:00', 'gaetan')";
$modif= mysql_query($sql,$id);
?>
</body>
</html> |
Partager