You say that everything works if you manually enter your querys, but when you have the script insert it, it doesn't work?
You have found the problem then.
Echo your query statement, instead of executing it, and post it here. It is 100% a syntax error, if what you're saying is true.
True not 100% - directly atleast - any problem with his variables is a problem with his query syntax aswell
Last edited by TFlan; 01-09-2013 at 05:16 AM..