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?