qu3nt1n
asked on
PostgreSQL ERROR: permission denied for relation
I am designing a website in PHP 5, HTML, CSS, etc using a PostgreSQL 8.1 database on the back-end.
I want to add a new record a new table (confirmemail) I've created in my PUBLIC schema using the "insert into" command. I can add it from within the PostgreSQL EMS SQL Editor, however when I try to do the same thing through my PHP functions/classes, I keep getting the following error message:
Query failed: ERROR: permission denied for relation confirmemail.
This is totally baffling me. Yes, I've set the public grants onthe confirmemail table and I've checked over the table properties to look for any anomalies. What's worse is that this behaviour seems to be happening to any new tables I add to the database.
Does anybody have any ideas or come across this?
I want to add a new record a new table (confirmemail) I've created in my PUBLIC schema using the "insert into" command. I can add it from within the PostgreSQL EMS SQL Editor, however when I try to do the same thing through my PHP functions/classes, I keep getting the following error message:
Query failed: ERROR: permission denied for relation confirmemail.
This is totally baffling me. Yes, I've set the public grants onthe confirmemail table and I've checked over the table properties to look for any anomalies. What's worse is that this behaviour seems to be happening to any new tables I add to the database.
Does anybody have any ideas or come across this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.