Afficher une image BLOB

Fermé
Utilisateur anonyme - 19 avril 2010 à 17:55
Bonjour,

je cherche a afficher une image Blob

Voici mon code... je sais que j'ai fais une erreur pendant l'affichage de l'image mais j'ai bo chercher sur le net je ne sais pas comment afficher une image BLOB

___________________________________________________


<?php
$base = Mysql_connect("localhost", "Nolan", "oxitonolan");
Mysql_select_db ('servitech', $base);

$sql = 'SELECT nom, img1 FROM machine_ocase';
$req = mysql_query($sql) or die ('Erreur SQL !<br/>'.$sql.'<br/>'.mysql_error());

while ($data = mysql_fetch_array($req))
{
?>
<li>
<h6><?php echo $data['nom'];?></h6>
<img src="<?php echo $data['img1'];?>"/></p>
</li>

<?php
}
mysql_free_result ($req);
mysql_close ();
?>
___________________________________________________

Le titre s'affiche comme il faut donc il y a bien une connexion mais l'image 1 elle ne s'affiche pas :S


Pourriez vous m'aidez?