panth Posted July 19, 2003 Share Posted July 19, 2003 Let\'s say I want to add a IRC channel into a database the irc chan is #we\'re-lost what do i need to do to have the \' not f****** my database (INSERT INTO somewhere VALUES (irc) \'We\'re-lost\') What do I need to make it work? Quote Link to comment Share on other sites More sharing options...
BinaryStar Posted July 19, 2003 Share Posted July 19, 2003 use addslashes() and please refrain from cursing....I have editted your post to take out the foul language... http://www.phpfreaks.com/phpmanual/page/fu...addslashes.html BS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.