I have seen different ways on how to use it but I don't understand the why...
say a simple SQL..
$q = "UPDATE table SET
col1 = '$var1',
col2 = '$var2'
";
So that is one way...
$q = "UPDATE table SET
`col1` = $var1,
`col2` = $var2
";
This does the same, but why the use of `?
and then:
$q = "UPDATE table SET
'col1' = $var1,
'col2' = $var2
";
So what is the correct way to use it, when to use it, and why... then I have seen this:
$q = "UPDATE table SET
col1 = ".$var1.",
col2 = ".$var2";
Thank you for taking the time.