#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    70
    Rep Power
    15
    Using Oracle database to insert a string with single quote, does not update tne letters after the quotes are lost. How do I maintain the whole lot.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    use before inputing it into the db

    $string = addslashes($string);

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    70
    Rep Power
    15
    Nope this does not solve the problem.

    Here is some more details. I have a form accepting say name and the entered name has a single quote in it(say) then i submit the form for error when I view the file again the text after the single quote is gone.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    Hmm, I just tried a fake form and printed the filed after submission and I put a name with a single quote in and it printed fine, sorry

Similar Threads

  1. help with fread() - strings from binary file
    By RabidRaider in forum C Programming
    Replies: 4
    Last Post: December 12th, 2003, 03:44 PM
  2. Converting numbered strings into int
    By C_rookie in forum C Programming
    Replies: 12
    Last Post: October 6th, 2003, 03:23 PM
  3. manipulating char * strings
    By infamous41md in forum C Programming
    Replies: 2
    Last Post: June 1st, 2003, 12:48 AM
  4. strings vs. constant strings (what's the difference?)
    By Matthew Doucette in forum C Programming
    Replies: 8
    Last Post: March 7th, 2003, 01:00 PM
  5. matching identical parts in two strings
    By mchess in forum PHP Development
    Replies: 11
    Last Post: June 14th, 2002, 03:07 AM

IMN logo majestic logo threadwatch logo seochat tools logo