Results 1 to 5 of 5

Thread: [RESOLVED] mysql_real_escape_string problem

Threaded View

  1. #1

    Thread Starter
    Addicted Member kzatu's Avatar
    Join Date
    Aug 2003
    Location
    Nevada
    Posts
    148

    Resolved [RESOLVED] mysql_real_escape_string problem

    I am having a problem when a user submits specific text to my database. If the user types a UNC path to a server and the server starts with an 'R' then the data is malformed as it gets entered into the mySQL database.

    For example, if the user types
    \\realtime\sharename
    I submit the data to the database using the mysql_real_escape_string. Which changes the data to now read
    \\\r\nealtime\\sharename
    This causes a problem when pulling the data out of the database and displaying it because of that \r\n. It does some tricky formatting and then the data printed in HTML looks like
    \ ealtime\sharename
    Any help on this?
    Last edited by kzatu; Jan 29th, 2008 at 12:05 PM.
    Changes are not permanent, but change is. {Neil Peart}

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