Странна грешка при добавяне

php_css

Registered
Код:
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 ') VALUES (NULL, 'ewrwerer', 'werwerwe', 'wqerwerwer','3','werwerwer' , '18.02.2' at line 1
от какво може да е ?
 
Код:
$sql = "INSERT INTO `songs` (`id`,`artist`, `title`, `path`,`id_cat`, `pic`,`date`,) VALUES (NULL,  '$_POST[artist]', '$_POST[title]', '$_POST[path]','$_POST[id_cat]','$_POST[pic]' , '$date');";
Къде е грешката
 
PHP:
$sql = "INSERT INTO `songs` (`id`,`artist`, `title`, `path`,`id_cat`, `pic`,`date`) VALUES (NULL,  '$_POST[artist]', '$_POST[title]', '$_POST[path]','$_POST[id_cat]','$_POST[pic]' , '$date')";

Така ? ;)
 

Back
Горе