You've received two excellent suggestions. Of the two, I'd favour Borislav's solution, mainly because it will take care of serveral server-specific issues automatically.
For example, if your back-end is SQL Server, the query could fail if you send a string containing an apostrophe. By using the "?" syntax, issues like that are taken care of.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.