parse error

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!

Moderator: General Moderators

m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Post by m2babaey »

Begby wrote:order is a reserved word, you will need to use backticks to delimit it. In the future remember that that is a very bad name to use for a field along with other names like select, desc, where etc.

backticks are on the tilda key on the upper left of your keyboard, it should look like `order`='value'
thanks
this was the only problem
SUCCESS!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Keep in mind too, that you may want to leave quotes off of integer values. MySQL does not enforce strict typing on data yet, but if it grows up a little more it might. Future versions may require that integers not be cast to string values using the quotes around them.
Post Reply