Thread: addslashes

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Olympia
    Posts
    19
    Rep Power
    0
    Ok so i did the $news=addslashes($news) so information can be inserted into a database my question now is that when I call it from the database it looks like
    test'
    so how do I get it to return to normal I'm already using echo nl2br($news)

    thanks for any help
  2. #2
  3. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    RTFM

    stripslashes()
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Gig Harbor, Washington, USA
    Posts
    29
    Rep Power
    0
    RTFM, I'd have to agree.

    The information you supplied is not sufficient enough to give an explanation beyond what the manual will give you.
    http://www.php.net/

    ------------------
    chris swanicke
    swanicke@defected.net

Similar Threads

  1. addslashes doesn't work anymore...
    By michelle in forum PHP Development
    Replies: 11
    Last Post: December 8th, 2002, 04:11 AM
  2. escapeshellcmd vs addslashes?
    By RyanA in forum PHP Development
    Replies: 1
    Last Post: October 14th, 2002, 09:13 AM
  3. Are my addslashes() being tripped by text?
    By AlexNinjaFighte in forum PHP Development
    Replies: 4
    Last Post: July 11th, 2002, 11:02 AM
  4. addslashes ()?
    By CrystalSilence in forum PHP Development
    Replies: 6
    Last Post: August 11th, 2001, 09:07 PM

IMN logo majestic logo threadwatch logo seochat tools logo