Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/01/2009, 11:30
Avatar de Montu
Montu
 
Fecha de Ingreso: enero-2009
Mensajes: 23
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: ¿como mostrar en tabla mis datos de mysql?

Hola,

No tengo mucha idea,
pero tengo algo de codigo que he hecho recientemente que quizás te ayude!

Código PHP:
<?
include "conexion.php";
$result=mysql_query("SELECT `hospital`. * FROM hospital"$conexion);

echo
"<table width=1200 border=4>
<tr>
<td><b>ID</td><td><b>Nombre</td><td><b>Explotadora</td>
</tr>"
;
while(
$row=mysql_fetch_row($result)){
  echo
"<tr>
    <td>$row[0]</td><td>$row[1]</td><td>$row[2]</td>
    </tr>"
;
}
echo
"</table>";
include 
"cerrar_conexion.php";
?>