I am trying to insert a new record, but get a:
"Could not execute SQL insert statement Unknown column 'cars' in 'field list'"
Cars is replaced by whatever the $catagory value may contain at the time. Here is my code, can some kind soul please help me!!
$catagory = addslashes($cat)
or die("Could not execute function \"AddSlashes\" ".mysql_error());
$rsNewCat = mysql_query("INSERT INTO catagory (cat) VALUES ($cat)")
or die("Could not execute SQL insert statement ". mysql_error());
$rsCatID = mysql_query("SELECT catid FROM catagory WHERE catagory = '$cat'")
or die("Could not retrive \"CatID\". ". mysql_error());