Tengo este codigo para mostrar las tablas:
Código :
<table width="1612" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFF00" bgcolor="#996699"> <tr class="simpleTextRed"> <th>Ocupación</th> <th>Sexo</th> <th>Proveedor</th> <th>Ciudad</th> <th>País</th> <th>Telefono móbil</th> <th>Pin</th> <th>Correo Electróco</th> </tr> <tr> <?php /*while ($registro = mysql_fetch_array($tabla)) {*/ ?> <td width="68" bgcolor="#663366"><span class="style5"> <?php echo $registro['ocupacion']; ?> </span></td> <td width="31" bgcolor="#663366"><span class="style5"> <?php echo $registro['sexo']; ?> </span></td> <td width="64" bgcolor="#663366"><span class="style5"> <?php echo $registro['proveedor']; ?> </span></td> <td width="44" bgcolor="#663366"><span class="style5"> <?php echo $registro['ciudad']; ?> </span></td> - <?php echo $registro['celular']; ?> </span></td> <td width="19" bgcolor="#663366"><span class="style5"> <?php echo $registro['pin']; ?> </span></td> <td width="111" bgcolor="#663366"><span class="style5"> <?php echo $registro['email']; ?> </span></td> </tr> <?php } ?></table> <table width="1612" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFF00" bgcolor="#996699"> <tr class="simpleTextRed"> <th>Usuario</th> <th>Código postal</th> </tr> <tr> <?php while ($registro = mysql_fetch_array($tabla)) { ?> <td width="50" bgcolor="#663366"><span class="style5"> <?php echo $registro['usuario']; ?> </span></td> <td width="86" bgcolor="#663366"><span class="style5"> <?php echo $registro['codigo_postal']; ?> </span></td> </tr> <?php } mysql_free_result($tabla); mysql_close($conexion); ?></table>
Pero me sale cualquier cosa, no se bien por donde encararlo. ¿alguna ayuda?
Gracias!