Page 1 of 1

Characters...

Posted: Sun Aug 17, 2003 2:47 am
by Mr. Tech
Hi!

I am wanting to select info from a myswl database that have these sort of charaters: * ( +

But when I do I get this mysql error:

Got error 'repetition-operator operand invalid' from regexp

Can I prevent that without removing the characters?

Thanks

Posted: Sun Aug 17, 2003 7:53 am
by Kriek

Posted: Sun Aug 17, 2003 6:34 pm
by Mr. Tech
mysql_escape_string() did not work... Any ideas?

Posted: Sun Aug 17, 2003 9:10 pm
by m3rajk
addslashes

Posted: Sun Aug 17, 2003 9:29 pm
by Mr. Tech
The function:

addslashes()

Will that stuff up any of the selecting of the mysql database?