correccion de:
Código:
¿Dónde está $db_insc y $sel_insc?
Código PHP:
Ver original<?
include("config.php");
$id = 1;
$sql="SELECT T.* , p.nombre,c.nombre
FROM tutor AS T
LEFT JOIN pais AS p ON T.id_parroquias = p.id
LEFT JOIN ciudad AS c ON T.id_cantones = c.id
";
echo "<table border=1 cellpadding=2 cellspacing=0 bordercolor=#006699>";
echo "<tr valign=middle><td align=center width=100>LISTADO TUTOR</td>";
echo "<td align=center width=50>CODIGO</td>";
echo "<td align=center width=50>NOMBRE</td>";
echo "<td align=center width=50>APELLIDOS</td>";
echo "<td align=center width=100>PAIS</td>";
echo "<td align=center width=100>CIUDAD</td>";
echo "<td align=center width=50>FUNCION</td>";
echo "<td align=center width=50>ANTECEDENTES</td>";
echo "</table>";
echo "<table border=1 cellpadding=2 cellspacing=0 bordercolor=#006699>";
<td nowrap="nowrap"><?php echo $id++ ;?></td>
<td nowrap="nowrap"><?php echo $db_insc["idtutor"] ;?></td>
<td nowrap="nowrap"><?php echo $db_insc["nomtutor"] ;?></td>
<td nowrap="nowrap"><?php echo $db_insc["apetutor"] ;?></td>
<td nowrap="nowrap"><?php echo $db_insc["nombre"] ;?></td>
<td nowrap="nowrap"><?php echo $db_insc["nombre"] ;?></td>
<td nowrap="nowrap"><?php echo $db_insc["funcion"] ;?></td>
<td nowrap="nowrap"><?php echo $db_insc["antecedentes"] ;?></td>
}
echo "</table>";
?>