Usually a bad query is what causes an error like you are experiencing. Echo your query out to the browser window and verify it actually contains the values you are expecting. You probably have a bad value in a variable or a syntax error.
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
Offline 1,422 posts
since May 2006