Did you do as I suggested and trim your script down to just display a message and NOT do the database stuff? Doing this will reveal whether your problem is webserver permissions related. Get your bare-bones cgi script (that just displays a message) to work in the browser first, and *THEN* try adding in the database stuff.