|
 |
 |
Last news
require_once("../gestion/config.php");
$meses_abr = array("","jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dic");
$ini_ano = date("Y", time());
$fin_ano = 2004;
for ($y=$ini_ano; $y>=$fin_ano; $y--) {
for ($m=12; $m>=1; $m--) {
$query = "SELECT id FROM noticias WHERE (idioma='a' OR idioma='i') AND publicar='1' AND mes='$m' AND ano='$y'";
$resultado = mysql_query($query) or die(mysql_error());
$hay = mysql_num_rows($resultado);
if ($hay > 0) {
echo "- " . $meses_abr[$m] . " /$y ";
}
}
}
?>
|
 |
 |
|
|
 |
News
In this area you will find the latest
news concerning our works, as well as other relevant articles.
Here is the list of the five latest news items
|
require_once("../gestion/config.php");
$query = "SELECT id,dia,mes,ano,titulo_eng FROM noticias WHERE (idioma='a' OR idioma='i') AND publicar='1' ORDER BY timestamp DESC LIMIT 5";
$resultado = mysql_query($query) or die(mysql_error());
$salida = "";
while (list($id,$dia,$mes,$ano,$titulo) = mysql_fetch_row($resultado)) {
echo "
 |
$dia/$mes/$ano A de I
" . salidahtml($titulo) . "
read complete news
|
";
}
?>
|
|