require "./config.inc";
//Aquí abriremos la base de datos
MySQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND.");
mysql_select_db($dbName) or DIE("Tabla no válida");
?>
if ($pf==1) {
?>
} else {
?>
}
?>
$busforos = "SELECT id, name, table_name from $tablaforos where active=1 and folder=0 limit 4";
$resforos = MySQL_QUERY($busforos);
while ($rowforos=mysql_fetch_array($resforos)) {
$id = $rowforos["id"];
$nombre = $rowforos['name'];
$tabla = $rowforos['table_name'];
$busmensa = "Select count(*) as mensajes from $tabla where approved='Y'";
$resmensa = MySQL_QUERY($busmensa);
$nummensa = mysql_result($resmensa,0,"mensajes");
echo "