COMO HAGO UNA CONSULTA
Publicado por WEBNESS (6 intervenciones) el 14/08/2006 23:35:34
HOLA, ya me pude conectar a postgresql desde php, pero ahora intento hacer esto:
$con=pg_connect("host=localhost port=5432 dbname=sian user=postgres password=postgres");
$q=pg_query($con,"SELECT * FROM tipoInmuebles");
while($row=pg_fetch_array($q))
{
echo $row["id"]." ".$row["nombre"]."<br>";
}
y me dice que la relacion tipoInmuebles no existe
$con=pg_connect("host=localhost port=5432 dbname=sian user=postgres password=postgres");
$q=pg_query($con,"SELECT * FROM tipoInmuebles");
while($row=pg_fetch_array($q))
{
echo $row["id"]." ".$row["nombre"]."<br>";
}
y me dice que la relacion tipoInmuebles no existe
Valora esta pregunta


0