Jump to content


Photo

Problem with ''


  • Please log in to reply
1 reply to this topic

#1 panth

panth
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 July 2003 - 12:41 PM

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?

#2 BinaryStar

BinaryStar
  • Staff Alumni
  • Advanced Member
  • 74 posts
  • LocationBethlehem, PA

Posted 19 July 2003 - 04:17 PM

use addslashes() and please refrain from cursing....I have editted your post to take out the foul language...

http://www.phpfreaks...addslashes.html

BS :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users