Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 ApostrapheProblem

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-11-20 : 08:46:55
Andy writes "Hi

I get problems with encoded query srtings and also when it is posted from a form.
I have a site which searches through nightclub records and some of them may include an 's :
J J's Nightclub
I have a test record of :
11Test Record
to show how the data is to be returned without the error

Now I have read in books that post takes care of the encoding so this one is a real puzzler.
its all going wrong when there is a ' in the club name in get or post.

This is the error
Syntax error (missing operator) in query expression '((ukclubsearch.companyname) = 'J J's Nightclub');'.

Url here:
http://www.clubbersnet.com/test.asp


If you could point me at a tutorial I have missed, or any help would be much appreciated.

Thank you

Andy Reynolds
andy@ringo1.freeserve.co.uk"
   

- Advertisement -