Possible Duplicate:
Best way to prevent SQL injection?
I am making a file system where users only can indicate where the files are and its not supposed to upload, just to capture the file name using javascript and an input file type.
The problem is when I it executes the query to insert... the path for the file is this:
C:\users\files\test.php
The problem here is the \ character because it ommits the next character in PHP. So its saved as: C:usersfilestest.php in the database.
I have another inputbox where users specif where they want the files... so whe they write:
C:\ the query does not execute because the \ character.
Any thoughts?