PHP interesse |
|
Hoi,
Ik zie de fout maar niet:'(
<?
$insert[1] = mysql_query('INSERT INTO cars (userid,mark,model,doors,fuel,year,tran,moter,capa,color,km,options,char,price,date) VALUES ("'.$user['id'].'", "'.$all_mark.'", "'.$_POST['model'].'", "'.$_POST['doors'].'", "'.$_POST['fuel'].'", "'.$_POST['year'].'", "'.$_POST['tran'].'", "'.$_POST['moter'].'", "'.$_POST['capa'].'", "'.$_POST['color'].'", "'.$_POST['km'].'", "'.$all_options.'", "'.$_POST['char'].'", "'.$_POST['price'].'", "'.time().'")') or die(mysql_error());
?>
<? $insert[1] = mysql_query('INSERT INTO cars (userid,mark,model,doors,fuel,year,tran,moter,capa,color,km,options,char,price,date) VALUES ("'.$user['id'].'", "'.$all_mark.'", "'.$_POST['model'].'", "'.$_POST['doors'].'", "'.$_POST['fuel'].'", "'.$_POST['year'].'", "'.$_POST['tran'].'", "'.$_POST['moter'].'", "'.$_POST['capa'].'", "'.$_POST['color'].'", "'.$_POST['km'].'", "'.$all_options.'", "'.$_POST['char'].'", "'.$_POST['price'].'", "'.time().'")') or die(mysql_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 'char,price,date) VALUES ("1", "?", "?", "?", "?", "?", "Handgeschakeld", "?", "?' at line 1
Mvg,
Thijs
|