Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/02/2011, 13:37
brepon
 
Fecha de Ingreso: noviembre-2010
Mensajes: 21
Antigüedad: 13 años, 5 meses
Puntos: 0
mostrar registro

Hola,
Hola,
Tengo un pequeño problema con estes códigos, cuando se ejecuta, no se muestran como quiero,
Por encima de la tabla, me aparece el ultimo registro,y me sale todo segido
De esta manera es como me queda.

Miguelroxgarcia548748754
nombre apellidos telefono
Manuelgalciarox6586584745
Código PHP:
<table width="65%" border="2" cellspacing="0" cellpadding="0"> <th width="20%" bgcolor="#FFFFCC">Nombre</th> <th width="20%" bgcolor="#FFFFCC">apellidos</th> <th width="5%" bgcolor="#FFFFCC">telefono</th> <?php include_once("conexion.php");    $cadena =("SELECT * FROM reserva");   $resultado=mysql_query($cadena$conexion) or die ("problema con cadena de conexion<br><b>" .  mysql_error()."</b>"); $busqueda mysql_fetch_array($resultado);    while ($registro mysql_fetch_array($resultado)){ echo $registro['nombre'];  echo $registro['apellidos']; echo $registro ['telefono']; $tabla="<table width=\"65%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\"><tr>"$tabla.="<td align=\"center\" width=\"70%\">".$row['nombre']."</td>"$tabla.="<td align=\"center\" width=\"30%\">".$row['apellidos']."</td> </tr>"$tabla.="<td align=\"center\" width=\"30%\">".$row['teleono']."</td> </tr>"; echo $tabla; } ?>