hola jonathan gracias por respondes, el problema es que no se como a
hacer para traer una clase la de noticias para contabilizar el numero de
noticias que tiene por categorias, y lo trato de hacer con el foreach
($datos as $d) pero el $datos ya lo tengo para las categorias entonces
no se como hacer para que imprima el numero de noticias dentro del php
que tengo ya que ya he usado el $d para las categorias aqui tengo el
archivo
categorias.php");
$obj = new Categorias();
$datos = $obj->getCategorias();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insertar registros con PHP POO</title>
<!--<script type="text/javascript" language="javascript" src="js/funciones.js"></script>-->
</head>
<body onload="limpiar();">
<table border="1" cellspacing="0" width="700">
<tr style="background-color:#666666; color:#FFFFFF; font-weight:bold">
<td valign="top" align="center" width="700">
categorias
</td>
<td valign="top" align="center" width="50">
descripcion
</td>
<td valign="top" align="center" width="50">
Temas
</td>
<td valign="top" align="center" width="50">
Ultimo Tema
</td>
</tr>
<?php
foreach($datos as $d) {
?>
<tr>
<td valign="top" align="right" width="350">
<a href="<?php echo $d["categoria"]; ?>-c<?php echo $d['idcategoria'];?>-h0.html"><?php echo $d["categoria"];?></a>
</td>
<td valign="top" align="right" width="350">
<?php echo $d["descripcion"];?>
</td>
<td valign="top" align="center" width="50">
<div align="justify">
no se que poner aqui
</div>
</td>
<td valign="top" align="center" width="50">
<div align="justify">
QUE ESCRIBO AQUI PARA IMPRIMIR QUIEN FUE EL QUE HIZO EL ULTIMO COMENTARIO EN DICHA CATEGORIA?????????????????
</div>
</td>
</tr>
<!--prueba, ver video del indu del 4-5-->
<?php
}
?>
</table>
</body>
</html>