PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey, could anybody tell me whats wrong with this sql? I know it's just a tiny error and i'm gunna kick myself after but i've wrote so much code today i just can't find it
Yeah you are right, but what if you wrote your query for lets say MySQL 4 and now tries to execute it in MySQL 5, now there could be new reserved words in MySQL 5 that were not in MySQL 4.
It just feels safer and better to use backticks
Last edited by genix2011 on Fri Aug 19, 2011 3:19 pm, edited 1 time in total.
Yes, I do agree with you on that one and I can not say anything negative about your statements. It would be safer to use those back ticks but I would not understand anyone needing to revert back to 'v4' because as standard servers come with the latest version and as soon as another 'v' is available the hosting providers upgrade but always add some code to support backwards capability.
But in the safe run i suppose you might as well use them but to me on my personal servers and remote servers I would not use anything other than the latest version I suppose. lol