Quote character in mysql search string
Posted
#1
(In Topic #158)
Regular

sNew is a string variable that may contain a "'" character.
Code (gambas)
But I always get a result with no records.
No doubt I'm missing something obvious but any ideas would be welcome
Posted
Regular

In an example where I was running a Gimp script I did this:-
So you may need to build the contents of sNew using Quote(sSomething) for the quoted part. Can we see an example of contents of sNew?
Posted
Regular

Here is the offending string:-
Code (gambas)
- John Lancaster's birthday
Posted
Regular

Take a look at this post and let us know if it helps: SQL to Query text in access with an apostrophe in it - Stack Overflow
Posted
Regular

Posted
Regular

I think there's a bind parameters, or something like that too, or I'm confusing with PHP
1 guest and 0 members have just viewed this.



