To see if it's a problem w/the script or with permissions, maybe you can try manually issuing SQL from phpMyAdmin or from the command line. If you can do SELECT, INSERT, UPDATE, etc. then it's probably something in the script, the script itself, or something the script is trying to access... just throwing this out there for ideas...
--ST