Делал по мануалу
Сам запрос
<?
$db->query(\"INSERT INTO files(file, date) VALUES (:file, :date)\"
->execute(array(\':file\' => $file, \':date\' => time()));
?>
Текст ошибки
Warning: PDO::query(): SQLSTATE[42000]: Syntax error or access violation: 1064 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 \':file, :date)\' at line 1 in C:\\OpenServer\\domains\\obmen\\index.php on line 19
Fatal error: Call to a member function execute() on a non-object in C:\\OpenServer\\domains\\obmen\\index.php on line 20
HELP ME USERS!!!
Добавлено 12.01.14 в 20:23:46:
не заметил что там query вместо prepare, нужно очки купить (((