PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Mr. Tech
Forum Contributor
Posts: 205 Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia
Post
by Mr. Tech » Sun Aug 17, 2003 2:47 am
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
Kriek
Forum Contributor
Posts: 238 Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:
Post
by Kriek » Sun Aug 17, 2003 7:53 am
Mr. Tech
Forum Contributor
Posts: 205 Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia
Post
by Mr. Tech » Sun Aug 17, 2003 6:34 pm
mysql_escape_string() did not work... Any ideas?
m3rajk
DevNet Resident
Posts: 1191 Joined: Mon Jun 02, 2003 3:37 pm
Post
by m3rajk » Sun Aug 17, 2003 9:10 pm
addslashes
Mr. Tech
Forum Contributor
Posts: 205 Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia
Post
by Mr. Tech » Sun Aug 17, 2003 9:29 pm
The function:
addslashes()
Will that stuff up any of the selecting of the mysql database?