Results 1 to 25 of 25

Thread: stripslashes cut off data

Threaded View

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Resolved stripslashes cut off data

    This is supposed to be simple, but still.....

    When saving a value to the database I use addslashes (so test'er become test\'er) ... no problem there.

    But when I read it back I get this....
    echo $row->$value = tes
    echo stripslashes($row->$value) = tes

    uuuurgh..drive me bonkers. I also checked get_magic_quotes_gpc(), and then add or stripslashes.
    Dont want to edit my php.ini as I'm not sure where I will host this site yet.
    Last edited by StrangerInBeijing; Jul 4th, 2008 at 11:40 AM.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width