Código PHP:
$sql=mysql_query("SELECT * FROM empleados",$con);
//muestra los datos consultados
echo "<table width='718' border='1'>
<tr><td>Nombres</td><td>Departamento</td><td>Sueldo</td></tr>\n";
while($row = mysql_fetch_array($sql)){
echo "<tr><td>".$row['nombres']."</td><td>".$row['departamento']."</td><td>".$row['sueldo']."</td></tr> \n";
}
![En dos](http://static.forosdelweb.com/fdwtheme/images/smilies/partido.png)
![En dos](http://static.forosdelweb.com/fdwtheme/images/smilies/partido.png)
![En dos](http://static.forosdelweb.com/fdwtheme/images/smilies/partido.png)