![Serio](http://static.forosdelweb.com/fdwtheme/images/smilies/molesto.png)
Código PHP:
<?
require 'auth.php';
require 'fnc_categ.php';
comprueba_autenticacion();
$id=$_GET['p_id'];
$predecesor=$_GET['p_nombre'];
$categs= lista_categ_cero($_GET['p_campo'], $predecesor);
?>
<html>
<head>
<title>Lista de categorias</title>
</head>
<body>
<h1>Lista de categorias</h2>
<p>Tienes <?=count($categs); ?> categorias...</p>
<table width="100%" border=1 cellpadding=4 cellspacing=0>
<tr>
<td><a href=lista.php?p_campo=nombre>Nombre</a></td>
<td><a href=lista.php?p_campo=descripcion>Descripcion</a></td>
<td><a href=lista.php?p_campo=fecha>Fecha</a></td>
<td> Subcategorías</td>
</tr>
<? foreach($categs as $categ) { ?>
<tr>
<td><?=$categ['nombre']?></td>
<td><?=$categ['descripcion']?></td>
<td><?=$categ['fecha']?></td>
<td><a href="11.php?p_id=<?=$categ['id']?>&p_nombre=<?=$categ['nombre']?>">Subcategorías</a></td></td>
</tr>
<? }?>
</table>
</body>
</html>