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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| <html>
<head></head>
<body>
<center>
<h1>Mise en ligne</h1>
</center>
<?php
//connection avec la BD
$bd = "administrateur";
$connection = mysql_connect("localhost","root","0000");
// test la connection
if ( ! $connection )
die ("connection impossible");
// Connecte la base
mysql_select_db($bd) or die ("pas de connection");
$reponse = mysql_query("SELECT * FROM adresse"); // Requête SQL
?>
<form method="post" action="Ajout_Adress_Site.php">
<center>
Selectionner l'adresse à mettre à jour sur le site<br><br>
<table>
<?php
while ($donnees = mysql_fetch_array($reponse) )
{
?>
<tr><td>
<input name="Nom" type="checkbox"><?php echo $donnees['Nom']; ?></input><br>
</td></tr>
<?php
}
?>
</table>
<br><br>
<input type="submit" Name="val" value="Ajouter">
<input type="submit" Name="val" value="Supprimer">
<br>
<A href="../Administrateur/gereradress.html">Retour au menu précédent</A>
</center>
</form>
</body>
</html> |
Partager