
January 9th, 2013, 12:30 PM
|
|
Registered User
|
|
Join Date: Jun 2003
Posts: 11
Time spent in forums: 2 h 48 m 55 sec
Reputation Power: 0
|
|
|
MySQL Syntax Error
What is wrong with My Query? Is giving me this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order, description) VALUES ('nome', 0, 1000, 'Descricao')' at line 1
The query is
$query = "INSERT INTO categories (name, parent, order, description) VALUES ('$catname', $catparent, $catorder, '$catdesc')";
$catparent and $catorder are integers, so I removed the quotes. BUT does not make any diference. I tryed with and without quotes in all vars. Any Help Please?
|