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
| <?php
include('vision_db.php');
include('secure.php');
$connexion=mysql_connect($host, $user, $password)
or die ("connexion au serveur impossible");
$db=mysql_select_db($database, $connexion)
or die ("selection de la base de donnée impossible");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Admin Vision</title>
</head>
<body>
Ajouter un fichier. <br />
<form action="admin_1.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="5000000" />
<input type="file" name="toph" />
<input type="submit" value="Envoyer" />
</form> <br /><br/><br />
Supprimer un fichier.
<?php
$sql =mysql_query("SELECT * FROM photos")
or die ("requete impossible");
$retour_sql = mysql_fetch_assoc($sql);
?>
<table border="8" cellspacing="5px" cellpadding="20" width="70%" frame="box" rules="all">
<?php do { ?>
<tr>
<td>Miniatures<br/><?php echo '<img src = "'.$retour_sql['lien'].'" height = "320" widht"240"/>'; ?></td>
<td>Nom<br/><?php echo $retour_sql['Nom']; ?></td>
<td>Editer<br/></td>
<td>Supprimer<br/></td>
</tr>
<?php } while ($retour_sql = mysql_fetch_assoc($sql)); ?>
</table>
</body>
</html> |
Partager