PostgreSQL - COMO HAGO UNA CONSULTA

 
Vista:

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
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder