Código PHP:
echo "<table border='0' cellspacing='2' cellpadding='0'>";
$consulta=mysql_query("SELECT * FROM cancion order by can_id desc limit 6");
$cont=0;
while ($a=mysql_fetch_array($consulta))
{
$cont ++;
$id=$a['can_id'];
$cancion=$a['can_nom'];
$artista=$a['can_art'];
$foto="musica1/".$id.".jpg";
if (file_exists($foto))
{
$s="<img border='0' height='80' width='60' alt='$cancion $artista' src=".$foto." />";
}
else{
$s="<img border='0' height='80' width='60' alt='$cancion $artista' src='imagenes/Vista147.png' />";
}
echo "<tr><td>".$s."</td><td>".$s."</td><td>".$s."</td></tr>";
}
echo "</table>"