
07.08.2009, 15:54
|
|
Постоянный
Регистрация: 02.03.2008
Сообщений: 893
Провел на форуме: 5365841
Репутация:
712
|
|
PHP код:
$time = date('Y-m-d G:i:s'); //или твой формат даты
$bla = $_POST['pic'];
mysql_query("INSERT INTO `comments` (`date`,`gallery`) VALUES ('" . $time . "', ".addslashes($bla)."')") or die(mysql_error()); //line 9
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 '')' at line 1
|
|
|