0 $pmes $pano $ptema $ppub and activo=1 order by id desc"; $rs=mysql_query($query); while ($data=mysql_fetch_array($rs)) { $idn[]=$data['id']; $titulo[]=$data['titulo']; $entradilla[]=$data['entradilla']; $meses[]=$data['mes']; $anos[]=$data['ano']; $queryf="select thumb from fotos where noticia=".$data['id']." limit 1"; $rsf=mysql_query($queryf); $datos=mysql_fetch_array($rsf); $thumb[]=$datos['thumb']; unset($datos); unset($rsf); unset($queryf); } $queryt="select distinct(tema) as temas from noticias where activo=1"; $rst=mysql_query($queryt); while ($data=mysql_fetch_array($rst)) { $temas[]=$data['temas']; } $queryt="select distinct(publicacion) as publicaciones from noticias where activo=1"; $rst=mysql_query($queryt); while ($data=mysql_fetch_array($rst)) { $publicaciones[]=$data['publicaciones']; } function cortaTxt($string, $limit, $break=" ", $pad="…") { // return with no change if string is shorter than $limit if(strlen($string) <= $limit) return $string; // is $break present between $limit and the end of the string? if (false !== ($breakpoint = strpos($string, $break, $limit))) { $long=strlen($string)-1; if ($breakpoint<$long) { $string = substr($string, 0, $breakpoint) . $pad; } } return $string; } ?>
BUSCADOR DE NOTICIAS
 
Mes
Año
Tema
Publicación
RESULTADO DE LA BÚSQUEDA
de