signature16 Posted May 7, 2007 Share Posted May 7, 2007 Arg! Can somebody explain the difference between ' " `? I can't figure it out and Googling for something like that is hard. Quote Link to comment https://forums.phpfreaks.com/topic/50398-difference-between/ Share on other sites More sharing options...
Lokolo Posted May 7, 2007 Share Posted May 7, 2007 ok from what I know (not a lot but still) you use ' around variables you use ` around table names and you use " around commands (such as echo "hello" or "SELECT...." ) Quote Link to comment https://forums.phpfreaks.com/topic/50398-difference-between/#findComment-247518 Share on other sites More sharing options...
fenway Posted May 7, 2007 Share Posted May 7, 2007 No difference between single and double quotes in SQL; backticks are used to escape reserved keywords. If you're writing sql in PHP, you will typically wrap the sql string in double quotes so that any variables will be interpolated, and hence you use single on the "inside". Quote Link to comment https://forums.phpfreaks.com/topic/50398-difference-between/#findComment-247546 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.