Ver Mensaje Individual
  #12 (permalink)  
Antiguo 03/12/2007, 12:06
marcodoming
 
Fecha de Ingreso: noviembre-2007
Mensajes: 18
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: problema con seleccionar id

hola foreverood, he hecho lo que me dijiste y me da un error
codigo:
<?php
$id = $_GET['id'];
$conexion = mysql_connect('localhost', '', '');
mysql_select_db('mibasedatos');
$rst = mysql_query("SELECT * FROM propiedades WHERE id = $id");
$row = mysql_fetch_array( $rst );
echo $row['foto1'];
echo $row['ciudad'];
?>
error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in