I am sure this is a very newbish question that has been asked hundreds of times before, and probably there isn't a "right" answer. I've searched several sites and forums, and the answers left me even more confused!
I would like to start as I mean to go on - with a uniform coding structure that is going to be easy to read and use! So, when should I be using smallStartCamelCaps, when should I use AllCamelCaps, and when should I be using underlined_words?
At the moment, I tend to define variables as $myVariable and HTML form stuff as input name="InputBox". I think maybe this is force of habit from VB.NET - is it a bad practice?
The same goes for tables in MySQL. I read contradicting things about these. Generally, I have a tables called ID (caps), and the other fields I try to keep to one word, all lower case. Is this OK? I'm sure I've read somewhere that you should try to keep it all lower case. Should I put id instead of ID? And what about field names, is this the same? I've seen people use FieldName, fieldName, fieldname, field_name or even something like item_fieldName (the last one seems kinda pointless to me).
On another note, what is the difference between:
"
'
`
When should each one be used?
Again, I've seen people using a combination, sometimes even in the same code, e.g.:
$row["name"]
$row['name']
SELECT item1,item2 FROM mytable
SELECT `item1`,`item2` FROM `mytable`