See postgre tables from PHP code - Mailing list pgsql-php

From Félix Sánchez Rodríguez
Subject See postgre tables from PHP code
Date
Msg-id 001501c942e9$665772b0$3000a8c0@atenea
Whole thread Raw
Responses Re: See postgre tables from PHP code  (Brew <brew@themode.com>)
Re: See postgre tables from PHP code  (Andrew McMillan <andrew@morphoss.com>)
Re: See postgre tables from PHP code  (Raymond O'Donnell <rod@iol.ie>)
Re: See postgre tables from PHP code  (Andy Anderson <aanderson@amherst.edu>)
List pgsql-php
Hi everybody:

I'm relatively new to PHP programming and I was recommended to use
PostgreSQL as the site's database. However I haven't able to see my DB's
tables from PHP. Here is my (very simple, I think) code:

$pg = pg_connect("host=localhost port =5432 dbaname = ATM user=postgres
password = mypassword");
pg_query($pg,"select nick,contrasenna,nombre,apellidos from usuarios");

Beside, I opened my PostgreSQL interface, called pgAdmin and run the same
query inside the ATM database and the error was the same: "relation
'usuarios' was not found". It's like something else was needed to access the
DB tables.



pgsql-php by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: apache+php+postgresql+WindowsXP
Next
From: Brew
Date:
Subject: Re: See postgre tables from PHP code