Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: parsing strings

  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    parsing strings

    Hi,

    I made a form which store the data into a mysql table. When I paste some character (like ' , ", and other) my script crached.

    What I can do (what function i use) to parsing my data and send this character dont crach my script ???

    Thks

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    use addslashes()
    http://www.php.net/manual/en/function.addslashes.php
    on all the stringvales you write to a database.


  •  

    Posting Permissions

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