query syntax and conditions
just curious, about a few things, I am going over my query's
and changing || to OR adding brackets, stuff like that.
I know its best to enclose different conditions from reading up
whether you need too or not, separating "OR, AND" etc, just curious
should I put both in brackets when they exist? or one over another?
also should I always do AND conditions in the beginning no matter what?
or are they ok at the end if using brackets?
also is it good practice to use single quotes like '$var' in query, double or
none at all.
I'm strictly doing query's inside scripts only.
Thanks as always