Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/04/2007, 18:01
Avatar de cala932
cala932
 
Fecha de Ingreso: septiembre-2006
Ubicación: San Juan-Argentina
Mensajes: 902
Antigüedad: 17 años, 7 meses
Puntos: 9
Re: Como obtener datos de una bd ?

HOla, me parece que este es tu problema:
Código PHP:
while ($registro = @mysql_fetch_array($tabla)) {  
?> 
<tr> 
<td><?php echo $_registro['ref']; ?></td> 
<td>><?php echo $_registro['nombre']; ?></td>
si te fijas la variable $registro cuando haces la asignacion del mysql_fetch..., no tiene un guion bajo como lo has puesto en los echo. O colocas el guion bajo aca asi:
Código PHP:
while ($_registro = @mysql_fetch_array($tabla))  
//o lo quitas de aca
<td><?php echo $_registro['ref']; ?></td> 
<td>><?php echo $_registro['nombre']; ?></td>
Saludos.
__________________
->Aprender es un proceso que incluye el error..