Ver Mensaje Individual
  #13 (permalink)  
Antiguo 11/06/2012, 13:28
elgoncho99
 
Fecha de Ingreso: junio-2012
Ubicación: Argentina - Buenos Aires
Mensajes: 135
Antigüedad: 11 años, 11 meses
Puntos: 32
Respuesta: Consultar 3 tablas en un DB

Proba usando un array asociativo devuelto por mysql_fetch_array
Tene cuidado porque tambien habias escrito mal un par de tags HTML pusiste </th> en lugar de <tr>.

Código PHP:
Ver original
  1. echo "<table id='td' border='1'
  2.         bordercolor='#000000'
  3.         name='resultado'
  4.         cellpadding='0'
  5.         cellspacing='0'>
  6.         <tr>
  7.             <th>TELEFONO</th>
  8.             <th>CEDULA</th>
  9.             <th>NOMBRE</th>
  10.             <th>DISTRITO</th>
  11.             <th>DIRECCION</th>
  12.             <th>SALARIO</th>
  13.         </tr>";
  14. while($fila= mysql_fetch_array($result))
  15. {
  16.     echo "<tr>";
  17.         echo "<td>".$fila['telefono']."</td>";
  18.         echo "<td>".$fila['cedula']."</td>";
  19.         echo "<td>".$fila['nombre']."</td>";
  20.         echo "<td>".$fila['distrito']."</td>";
  21.         echo "<td>".$fila['direccion']."</td>";
  22.         echo "<td>".$fila['salario']."</td>";
  23.     echo "</tr>";
  24. }
  25. echo "</table>";

Esperso sirva, saludos.
__________________
http://www.latinium.com.ar/