write the actual value of SQL to screen and you'll probably see where the error is.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System
will print the concatenated string value to screen and stop the script from processing the error line
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System
You really should make sure that request("MType") is a number. You'll end up with some problems (such as this one) if you don't. The best way to do that is to assign Request ("MType") to a variable and then convert it to a number.