
Código PHP:
<?php
include("../conexion.php");
$link=Conectarse();
$result=mysql_query("select * from ingreo_personal ",$link);
?>
<TABLE BORDER=1 CELLPADDING=1 CELLSPACING=0 bgcolor="#99CC00">
<TR><TD> Rut</TD><TD> DV </TD><TD> Nombre </TD><TD> Apellidos Paterno </TD><TD> Apellido Materno </TD><TD> sexo </TD><TD> Fono(1) </TD><TD> Fono(2) </TD><TD> Movil </TD><TD> E-mail </TD><TD> Cargo </TD></TR>
<?php
while($row = mysql_fetch_array($result)) {
printf("<tr><td> %s</td><td> %s </td><td> %s </td><td> %s </td><td> %s </td><td> %s </td><td> %s </td><td> %s </td><td> %s </td><td> %s </td><td> %s </td></tr>", $row["rut"],$row["dv"],$row["nombre"],$row["apellidop"],$row["apellidom"],$row["sexo"],$row["fono1"],$row["fono2"],$row["fono3"],$row["email"],$row["cargo"]);
}
mysql_free_result($result);
mysql_close($link);
?>