Code: Select all
mysql_query("INSERT INTO products
(condition) VALUES
('$condition')")or die(mysql_error());The start of mine file has this: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 'condition) VALUES ('used')' at line 2
So line 2 is $userid.<?php
$userid=$_POST['userid'];
$catid=$_POST['catid'];
$catname=$_POST['catname'];
$subid=$_POST['subid'];
$subname=$_POST['subname'];
$title=$_POST['title'];
.................
I am not using userid in this test. I have stripped it right down to enter only $condition into the 'condition' field.
The word being passed into $condition is
What the heck is going on?? Does MySQL or PHP have an issue with the word "condition"???used