Our current WordPress install has a few custom tables we've placed into the WP database that hold misc. information. We've created custom option pages for the WP admin panel for our WP admin users to be able to access the information from the DB through the admin.
One option we want is for users to be able to delete some of these records through the WP admin panel, so I've initially setup a custom query to just UPDATE or DELETE the records from the table. However, when I try to submit the query, WP returns the error: "You do not have sufficient permissions to access this page.".
Should I be avoiding the MySQL query "UPDATE table_name... etc."?
$_SERVER['SERVER_URI']- it seems that you do not have permission to access that page. Use firebug/dev tools - what is the url displaying as? – Stephen Harris Feb 7 '12 at 23:17