Is there any difference between “ or ” ” or ‘ ‘ quotes in mysql query when assessing Mysql databse through PHP?
Share
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.
` (back ticks) are used to escape column/table names if you use spaces or commas in your names (don’t!) or have columns that are named like functions, for example: AVG, MIN etc.
You usually use double quotes to start/end a string in PHP. That leaves you with single quotes to start/end strings in your MySQL query.