non affichage d'image sur ma page php via mysql
bonjour, voici mon code php :
Code:
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
| <?php
@mysql_connect("localhost", "root", "") or die(@mysql_error()) ;
@mysql_select_db("catalogue") or die(@mysql_error()) ;
function afficheImage($id){
$sql = "NOM SELECT * FROM arc WHERE ID=".$id;
$res = mysql_query($sql);
WHILE ($image = mysql_fetch_assoc($res)){
echo "<IMG SRC='".$image['NOM'].".jpg'>";
}
}
?>
<html class="html">
<head>
<title>catalogue page 1
</title>
<link rel="stylesheet" type="text/css" href="../catalogue.css" >
</head>
<body>
<img src="../banniere/banniere2.jpg"/>
<div class="corps">
<div class="menu">
<ul>
<li><a href="accueil.html">Accueil</a></li>
<li><a href="presentation.html">Présentation</a></li>
<li><a href="photos.html">Photos</a></li>
<li><a href="catalogue_page_1.php">Catalogue</a></li>
<li><a href="acces.html">Accès</a></li>
<li><a href="liens.html">Liens</a></li>
</ul>
</div>
<div class="contenu">
</div>
<div class="adresse">
<h5>Arc et Flèche</h5>
<hr>
<br>
Rue d'Amercoeur,77
<br>
4020 Liège
<br>
Tel: 04 343 06 13
<br>
<a href="info@arcetfleche.be" class="lien">info@arcetfleche.be</a>
<br>
<h5>Ouverture</h5>
<hr>
<br>
Du Mardi au Samedi
<br>
De 9h00 à 12h30
<br>
et de 13h30 à 18h00
</div>
<div class="pied">pied
</div>
</div>
</body>
</html> |
et voici ce que j'ai dans ma bdd:
Pièce jointe 155096.
Mon problème est que je n'arrive pas à afficher l'image sur ma page catalogue_page_1.php, pouvez-vous m'aider svp?