How do I escape a dot in insert query?
insert into './$x/.' () lues( );
How to escape the dot before $x and after $x, I tried the above but did not work.
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.
Use back slash, not forward slash.
\also, you need to escape things by placing the escape character BEFORE the thing it’s escaping.
E.g.
Ok, but in your case, try this:
Those are not ‘ but `
That is the backtick character. Same key as ~ on U.S. keyboards.
Concatenating a variable and a string:
But inside of double quotes "" you can just put the variable names into the string:
(Both of the above result in the exact same string being assigned to variable $query)
Take a look at the PHP page on strings
You can see sections on single quote, double quote, and others that will blow your mind (HEREDOC).
Important: also check out ‘parameterized queries’.