He hecho todos los sistemas de usuarios y todo, pero he cogido un sistema de noticias de kike sin sql.
--->Aqui va el codigo de index.php
Código PHP:
<html>
<head>
<title>Noticias PHP ...by Kike</title>
<link rel="stylesheet" type="text/css" href="estilo.css">
</head>
<body>
<?
// Noticias PHP ...by kike
include("config.php");
$Base = file($FicheroBase);
$Orden = array_reverse($Base);
if(empty($paginado)) {
$paginado = 0;
}
$Mostrar = $paginado + $LimiteNoticias;
for ($i = $paginado; $i < count($Orden) AND $i < $Mostrar; $i++) {
$dato = explode("|@|", $Orden[$i]);
$nombre = $dato[1];
$email = $dato[2];
$titulo = $dato[3];
$contenido = $dato[4];
$fecha = $dato[5];
include("noticias.html");
}
// Paginacion de noticias
function Paginacion() {
global $LimiteNoticias, $Base;
if($LimiteNoticias < count($Base)) {
$Paginas = count($Base) / $LimiteNoticias;
echo "<b>Historial de noticias : </b>";
for($i = 0; $i < $Paginas; $i++) {
echo "<a href=index.php?paginado=". $i * $LimiteNoticias .">". ( $i + 1 ) ."</a> \n";
}
return;
}
}
?>
<table cellpadding="5" cellspacing="1" width="400" align="center">
<tr>
<td class="normal">
<? Paginacion(); ?>
</td>
</tr>
</table>
</body>
</html>
Código PHP:
<?php
if (!isset($page)) { $page ="noticias/index.php"; } include_once ("$page");
?>
Warning: array_reverse(): The argument should be an array in /home/vhosts/supervista.redservicio.com/noticias/index.php on line 13
Warning: Division by zero in /home/vhosts/supervista.redservicio.com/noticias/index.php on line 40
Les agradecderia que me ayudaran por que me esta dando muchos quebraderos de cabeza
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Salu2 y gracias