49 |
 |
Premios
|
$sql = " SELECT id, foto1, titulo, texto, tipo_noticia, activo, foto2, foto3, foto4, foto5 ";
$sql .= "FROM noticias ";
$sql .= "WHERE tipo_noticia=1 AND activo=1 ";
$sql .= "ORDER BY id DESC";
$_pagi_result = mysql_query($sql) or die (mysql_error());
if (mysql_num_rows($_pagi_result) > 0)
{
while ($fila = mysql_fetch_row($_pagi_result)) {
?>
if(strlen($fila[6])>0)
{
?>
$url = "images/" . $fila[6];
list($largo, $ancho, $tipo, $attr) = getimagesize($url);
?>
if($largo>$ancho)
{
$tama = "height='100%'";
}else
{
$tama = "width='100%'";
}
?>
 >
}
?>
if(strlen($fila[7])>0)
{
?>
$url = "images/" . $fila[7];
list($largo, $ancho, $tipo, $attr) = getimagesize($url);
?>
if($largo>$ancho)
{
$tama = "height='100%'";
}else
{
$tama = "width='100%'";
}
?>
 >
}
?>
if(strlen($fila[8])>0)
{
?>
$url = "images/" . $fila[8];
list($largo, $ancho, $tipo, $attr) = getimagesize($url);
?>
if($largo>$ancho)
{
$tama = "height='100%'";
}else
{
$tama = "width='100%'";
}
?>
 >
}
?>
if(strlen($fila[9])>0)
{
?>
$url = "images/" . $fila[9];
list($largo, $ancho, $tipo, $attr) = getimagesize($url);
?>
if($largo>$ancho)
{
$tama = "height='100%'";
}else
{
$tama = "width='100%'";
}
?>
 >
}
?>
|
|
echo $fila[2]?> |
|
echo html_entity_decode($fila[3],ENT_NOQUOTES,"UTF-8");?>
|
|
Si te ha gustado comparte este contenido |
|
}
}
?>
|
 |
|
|