Ver Mensaje Individual
  #15 (permalink)  
Antiguo 03/12/2007, 12:54
Avatar de foreverOdd
foreverOdd
 
Fecha de Ingreso: noviembre-2007
Ubicación: Caracas
Mensajes: 489
Antigüedad: 16 años, 5 meses
Puntos: 14
Re: problema con seleccionar id

Oye man pero tienes que aplicar un poco la logica ¿no crees?

ese error te da porque no has cerrado el WHILE,

te pongo el codigo y espero te ayude:
Código PHP:
<?php
$id 
$_GET['id'];
$conexion mysql_connect('localhost''root''tenerife');
mysql_select_db('w03hostalia_casascastilla');
$rst mysql_query("SELECT * FROM propiedades WHERE id = $id");

While(
$row mysql_fetch_array($rst)) {
echo 
$row ['foto1'];
echo 
$row ['ciudad'];
}
?>
EXITO!