Firstly, do you have INSERT priveledges on the database.
Secondly, are you sure that your sql is correct. echo it to screen to see what is actually being generated for you.
post the sql that performs the INSERT here. Pretty hard to diagnose thin air 😉