Okay, this may seem very basic but I am so tired of seeing everyone write their queries just a little differently, and I am looking for the generally accepted best practice.
I see in the PHP documentation that their query examples have no backticks for the table names:
mysqli_query($link, "SELECT Name FROM City LIMIT 10")
However, I see many people using backticks for the table names, like:
mysqli_query($link, "SELECT `Name` FROM `City` LIMIT 10")
So, which is it? I am leaning more towards not using them, because not only does the PHP documentation page linked to above not use them, I also found on this page it says: "Unlike some other languages, backticks have no special meaning within double-quoted strings."
Well, every MySQLi query will be contained within double-quotes, right? So, is there no point in using them?