Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/12/2004, 20:57
Avatar de FuLaNo_
FuLaNo_
 
Fecha de Ingreso: mayo-2003
Ubicación: Don Torcuato, Buenos Aires, Argentina
Mensajes: 1.250
Antigüedad: 20 años, 11 meses
Puntos: 2
te conectas a la DB, haces un while y listo
algo asi:

Código:
  <table border="1" bordercolor="#111111" width="374" height="77" id="AutoNumber1">
    <tr>
      <td width="180" height="18" align="center">id_loteria</td>
      <td width="162" height="18" align="center">des_loteria</td>
      <td width="24" height="18" align="center"></td>
    </tr>
<?
//AQUI PONES LA CONEXIÓN SQL
$sql = mysql_query("SELECT * FROM Loterias ORDER BY id_loteria DESC"); 
while($row=mysql_fetch_array($sql)){
echo '
    <tr>
      <td width="180" height="55" align="center">'.$row[id_loteria].'</td>
      <td width="162" height="55" align="center">'.$row[des_loteria].'</td>
      <td width="24" height="55" align="center">
      <input type="checkbox" name="'.$row[id_loteria].'" value="OFF"></td>
    </tr>
';
}
?>
  </table>
Seguro hay mejores forma de hacerlo
__________________
I Love Programming...