why this line
$result=mysql_query("INSERT INTO buy (markaid, modelid, telinfo, cena, kontakti)
VALUES ({$_POST['markaid']}, {$_POST['modelid']}, {$_POST['telinfo']}, {$_POST['cena']}, {$_POST['kontakti']})") or die("Invalid query: " . mysql_error());
is giving me this error
Invalid query: 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 ' fsdf, 54354, fdgdf)' at line 2
i tried replacing {$POST['markaid']} and the rest with simple variables ($a={$POST['markaid']} and after that using $a in the query), but it still outputs the same error