$conn = mysql_connect('localhost', 'root', '');
mysql_select_db('inap', $conn);
$cadenaSQL = "SELECT titulo, texto, fecha_pub, id FROM noticias where publicar = 1 and tipo = 1 " .
"order by fecha_pub desc";
$resultado = mysql_query($cadenaSQL, $conn);
$resultado1 = mysql_query($cadenaSQL, $conn);
?>
Instituto Nacional de Administración Pública - INAP | Area de Noticias
include('header.php'); ?>
include('menuleft.php'); ?>
|
while($campos = mysql_fetch_array($resultado1)) {
$texto = str_replace(chr(13)," ",$campos[1]); ?>
echo($texto); ?>
} ?>
|
|
|
| |
include('foother.php'); ?>