| View previous topic :: View next topic |
| Author |
Message |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Sat Dec 06, 2008 2:49 pm Post subject: [solved] strip slashes |
|
|
Hi,
is there a command like stripslashes for php?
I have information stored in a mysql table and need to remove the \ from the entries.
thx,
tueb
PS: addslashes would be nice, too.^^ _________________ #Quiz.de @ irc.GameSurge.net
JavaChat
Last edited by tueb on Sun Dec 07, 2008 4:34 pm; edited 1 time in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Dec 07, 2008 11:30 am Post subject: |
|
|
As for addslashes, I would recommend you have a look at the mysql::escape (or mysqlescape in older versions) for proper escaping. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Sun Dec 07, 2008 4:27 pm Post subject: |
|
|
thx, both work =) _________________ #Quiz.de @ irc.GameSurge.net
JavaChat |
|
| Back to top |
|
 |
|