$sql2="SELECT * FROM ARTICULOS_T WHERE CATEGORIA='4' ORDER BY ID DESC";
$sql3=mysql_query($sql2);
$sitio=mysql_fetch_array($sql3);
$id=$sitio["ID"];
$titulo=utf8_encode($sitio["TITULO"]);
$imagen=$sitio["IMAGEN"];
if ($imagen){
$sql5="SELECT * FROM IMAGENES_T WHERE ID='$imagen'";
$sql6=mysql_query($sql5);
$sitio6=mysql_fetch_array($sql6);
$url=$sitio6["URL"];
$grafico=" ";
}
else {
$grafico=" ";
}
$dc=$sitio["DC"];
$dc=str_replace("\n",' ',$dc);
$fechabruta=$sitio["FECHA"];
$separar = explode('-',$fechabruta);
$month=$separar[1];
if ($month==1){
$mes="enero";
}
if ($month==2){
$mes="febrero";
}
if ($month==3){
$mes="marzo";
}
if ($month==4){
$mes="abril";
}
if ($month==5){
$mes="mayo";
}
if ($month==6){
$mes="junio";
}
if ($month==7){
$mes="julio";
}
if ($month==8){
$mes="agosto";
}
if ($month==9){
$mes="septiembre";
}
if ($month==10){
$mes="octubre";
}
if ($month==11){
$mes="noviembre";
}
if ($month==12){
$mes="diciembre";
}
$fecha="$separar[2] de $mes de $separar[0]";
?>
echo utf8_encode($titulo); ?>
echo $fecha; ?> |
|
echo $grafico; ?> echo utf8_encode($dc); ?>... |
|
|
|
Últimas entradas: |
|
$sql="SELECT * FROM ARTICULOS_T WHERE CATEGORIA='4' ORDER BY ID DESC LIMIT 1,1000";
$result=mysql_query($sql);
while ($myrow=mysql_fetch_array($result)){
$idmapeo=$myrow["ID"];
$titulotab=utf8_encode($myrow["TITULO"]);
printf("- $titulotab
\n");
}
?>
|
|
include("../scripts/table.php"); ?> |