<img src=\"" .$ato_titre. ".jpg\" width=\"115\" height=\"115\"></div>
<img src=\"" .$ato_titre. ".jpg\" width=\"115\" height=\"115\"></div>Code : Tout sélectionner
<img src="" .$ato_titre. ".jpg\" width=\"115\" height=\"115\"></div>
<?
$ato_titre = titre de la chanson ;
if(file_exists($ato_titre . ".jpg")){
echo "<img src=\"" .$ato_titre. ".jpg\" width=\"115\" height=\"115\"></div>";
}else{
echo "<img src=\"pasdispo.jpg\" width=\"115\" height=\"115\"></div>";
}
?>
ce code est-il au complet ?Code : Tout sélectionner
<?
$ato_titre = titre de la chanson ;
if(file_exists($ato_titre . ".jpg")){
echo "<img src=\"" .$ato_titre. ".jpg\" width=\"115\" height=\"115\"></div>";
}else{
echo "<img src=\"pasdispo.jpg\" width=\"115\" height=\"115\"></div>";
}
?>
<?
header("Content-type: image/jpg");
$ato_titre = "titre de la chanson" ;
if(file_exists($ato_titre . ".jpg")){
$image = "" .$ato_titre. ".jpg";
}else{
$image = "pasdispo.jpg";
}
readfile($image);
?>
et pour la chager :Code : Tout sélectionner
<?
echo '<img src="http://www.kifradio.com/pochettes/myscript.php" alt="" />';
?>
readfile("pochettes/".$image);
alors que si je tape
readfile($image);
j'ai bien l'affichage a la base donc le lien est bon<?
header("Content-type: image/gif");
$ato_titre = titre de la chanson ;
if(file_exists($ato_titre . ".jpg")){
$image = "" .$ato_titre. ".jpg" ;
}else{
$image = "pasdispo.gif" ;
}
readfile($image);
?>
et
<img src="pochettes/image.php" alt=""/>
le premier est dans le dossier des pochettes et l'autre a la racine du site