Si te sirve de algo, tambien aca tengo este codigo:
Código PHP:
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="0">
<?php
include("Conexion.php");
$cnx = conectarse();
$instruccion = "SELECT codigo, nombre ".
"FROM curso";
$tabla = mysql_query($instruccion,$cnx);
mysql_close($cnx);
$cnt_cursos = 0;
while ($registro = mysql_fetch_array($tabla)) {
$cnt_cursos++;
echo '<tr style="font-family: arial; font-size: 11px;">';
echo '<td align="left">';
echo $registro["codigo"];
echo '</td>';
echo '<td align="left">';
echo $registro["nombre"];
echo '</td>';
echo '<td align="center"> </td>';
echo '<td align="right">';
}
mysql_free_result( $tabla );
echo '</td>';
echo '</tr>';
echo '</table>';
?>