PHP PostgreSQL
Posted: Fri Aug 06, 2010 5:53 am
Hey guys,
I'm using php to access to my postgreSQL but am having problems in the Select statement.
Heres what I have.
But it will return me this:
Warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "person" does not exist LINE 1: SELECT * FROM Parks ^ in C:\xampp\htdocs\Test.php on line 29
Query failed: ERROR: relation "parks" does not exist LINE 1: SELECT * FROM Person^
person is a table inside my postgreSQL.
I'm using php to access to my postgreSQL but am having problems in the Select statement.
Heres what I have.
Code: Select all
$testing = person;
$query = "SELECT * FROM " .$testing;
Warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "person" does not exist LINE 1: SELECT * FROM Parks ^ in C:\xampp\htdocs\Test.php on line 29
Query failed: ERROR: relation "parks" does not exist LINE 1: SELECT * FROM Person^
person is a table inside my postgreSQL.