afficher des images
BONJOUR
voici mon programme
<?
$db = mysql_connect('localhost', 'root', '');
// on séléctionne la base
mysql_select_db('lamine',$db);
$query = "SELECT distinct Nom , Prenom , Date_de_naissance , photo FROM
caracteristique_du_patient where Nom = 'gui'
";
$resultat = mysql_query($query);
while($row = mysql_fetch_array($resultat))
{
print ('<table width=100% border=0>');
$photo=$row['photo'];
print ('</table>');
}
mysql_close();
?>
<IMG SRC="<?php echo $row['photo']; ?>" height="240" border="0" />
la photo ne s'affiche pas
Dans ma table caracteristique_du_patient, j’ai mon champ photo en type TINYTEXT j’ai aussi essayé de crée un champ nom_image et un champ avec l’adresse relative de l’image en type Blob l’image ne s’affiche pas
*pouvez-vous m'aider
Merci
julie
Partager