Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/04/2007, 20:46
Avatar de AJVEvoluzione
AJVEvoluzione
 
Fecha de Ingreso: agosto-2004
Ubicación: Buenos Aires
Mensajes: 195
Antigüedad: 19 años, 8 meses
Puntos: 1
Re: Como obtener datos de una bd ?

Lo corregí asi, pero igual sigue sin darme el resultado que espero, me aparece en blanco

Código PHP:
<html>
<head>
<title>Reporte de Ciudades</title>
</head>
<body>
<h1>Reporte de Ciudades</h1>
<table>
<tr>
<td>ID Ciudad</td>
<td>Nombre</td>
</tr> 
<?php
$dbh 
= @mysql_connect('localhost''buenosa_32''1234tt');
@
mysql_select_db('buenosa_busca8');
$tabla = @mysql_query('SELECT * FROM propiedades');
while (
$_registro = @mysql_fetch_array($tabla));{
?>
<tr>
<td><?php echo $_registro['ref']; ?></td>  
<td><?php echo $_registro['nombre']; ?></td> 
</tr>
<?php
}
@
mysql_free_result($tabla);
@
mysql_close($dbh);
?>
</table>
</body>
</html>