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
|
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
header("Content-type: image/jpeg");
mysql_connect("localhost","root","");
mysql_select_db("images");
$result= mysql_query("SELECT nom,date,img FROM offres WHERE categorie='cliente' AND type='icone' ORDER BY date");
while ($row = mysql_fetch_array($result))
{
if ( !$row[0] )
{
echo "image inconnu";
}
else
{
$Image = $row['img'];
$ImageName = $row['nom'];
echo $Image;
}
}
readfile($Image);
?>
</body>
</html> |