I have some address data already in database - for example:
12/14 High Road
I now get a new entry from a text file and I want to do compares on existing data
so if 'new' : insert, if not : update
but if I do
SELECT foo FROM table WHERE addressline='12/14 High Road'
I do not get a row returned
the forward slash is not being recognised
(I don't get an error either)
my primitive guess is that my input data is mysql_real_escape_string converted to something like '12\/14 High Road', where the backslash is a mySql magic character - and it fails to match it...
(I'd rather not call it magic as anything like 'magic quotes' is bad news, but it is only a guess)
any ideas how to get round this or point out my error?
there is no addslashes in operation
(this is simplifed explanation - I do more checks than one line of address)