include ("intranet/includes/vars.inc.php");
include("intranet/includes/bd.inc.php");
include("intranet/includes/funciones.inc.php");
$conex = mysql_connect ($host, $usuario, $contrasena)
or die ('
Error al conectar con la base de datos
' . mysql_error());
mysql_select_db($db) or die("No pudo seleccionarse la BD."); ?>
Ibilbideak
IBILBIDEAK
$query="select * from tipos order by tipo";
$result = mysql_query ($query, $conex) or die("La busqueda ha fallado" . mysql_error());
while($fila = mysql_fetch_array($result)) {
$query1="select * from fichas where idtipo=".$fila['idtipo']." and nombreeus !='' order by orden";
$result1 = mysql_query ($query1, $conex) or die("La busqueda ha fallado" . mysql_error());
$fila1 = mysql_fetch_array($result1);
$num_rows = mysql_num_rows($result1);
if ($num_rows>0){
?>