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

    Join Date
    May 2000
    Posts
    11
    Rep Power
    0
    Hi!

    I am trying to add two text areas into my database - and they seem to work fine as long as you dont't use commas and apostrophes. If you do, you get a php3 error and have to go back and correct your input.
    Go to http://www.camp-a-roo.com/database/add.shtml
    and you'll see what I mean...

    Please help!
    Mary

    ------------------
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    Use addslashes($textareaname)

    Before sticking into the databse and then when you retriev for display use stripslashes()
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    11
    Rep Power
    0
    Thanks so much!
    Worked like a charm.....
    Mary


    ------------------

IMN logo majestic logo threadwatch logo seochat tools logo