Posts: 565
Name: surajit ray
Location: inside the heart of my friends
|
PHP Code:
$query = "INSERT INTO vehicles (type, make, model, esize, fuel, desc, price) VALUES....
desc is a mysql keyword, thats why you are getting the error.That's why it's always good practise to use quote (``) with table name and field name.
Your query should be:
PHP Code:
$query = "INSERT INTO `vehicles` (`type`, `make`, `model`, `esize`, `fuel`, `desc`, `price`) VALUES....
Happy programming.
__________________
I am not smart, that's why i don't act smart
|