What can i do to insert file name with a single quotes from excel to mysql?
if I put the name without quotation, like this:
Andi
its working out, but if I put the name without quotation ( ‘ ), like this:
And’i
it didnt work.
Please Help 🙁
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you need to escape quotation character with a
\ (backslash)character.see here: http://dev.mysql.com/doc/refman/5.0/en/string-literals.html
also here for php: http://php.net/manual/en/function.mysql-real-escape-string.php