Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/02/2015, 12:01
tonieet
 
Fecha de Ingreso: marzo-2011
Mensajes: 105
Antigüedad: 13 años, 1 mes
Puntos: 3
por que no funciona?

hola a todos!
alguien me puede decir por que mi código no me muestra ningún registro de mi base de datos? gracias.

(la conexión con la base de datos esta bien hecha y comprobado)



<table border="1">
<tr>
<td>ID Propiedad </td>
<td>Propiedad</td>
<td>Ciudad</td>
<td>Descripci&oacute;n</td>
<td>Precio</td>
</tr>
<?php
$conexion = mysql_connect('xxxxxxxx', 'xxxxxxxxx', 'xxxxxxxx');
mysql_select_db('xxxxxxxx');
$tabla = mysql_query('SELECT propiedades.*, ciudades.* FROM propiedades, ciudades WHERE propiedades.idciudad = ciudades.id ORDER BY ciudades.nombre ASC');
while ($registro = mysql_fetch_array($tabla)) {
?>
<tr>
<td><?php echo $registro['id']; ?></td>
<td><?php echo $registro['titulo']; ?></td>
<td><?php echo $registro['idciudad']; ?>) <?php echo $registro['nombre']; ?></td>
<td><?php echo $registro['descripcion']; ?></td>
<td>Venta: <?php echo $registro['precioventa']; ?> / Renta: <?php echo $registro['preciorenta']; ?></td>
</tr>
<?php
}
mysql_free_result($tabla);
mysql_close($conexion);
?>
</table>