hise este script para que me identifique la pubicidad segun lo que sea (gif, jpg, swf) ok
este es el codigo
Código PHP:
<?
require("classe/connection.php");
$banner = new consulta();
$banners = $banner->ejecutar("SELECT imagen FROM banner ORDER BY id DESC LIMIT 0,1");
$row_banners = mysql_fetch_array($banners);
$banner = strstr ($row_banners[0], '.');
if($banner =".gif" && $banner = ".jpg"){
echo "<img src=\"images/banner/".$row_banners[0]."\">";
}if($banner = ".swf"){
echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"425\" height=\"160\">"
. " <param name=\"movie\" value=\"images/banner/".$row_banners[0]."\">"
. " <param name=\"quality\" value=\"high\">"
. " <param name=\"menu\" value=\"flase\">"
. " <embed src=\"images/banner/".$row_banners[0]." quality=\"high\" width=\"425\" height=\"160\"></embed>"
. "</object>" ."";
}
?>
gracias de antemano
saludos ales