include( 'database.php' ); { $sth = $pdo->prepare( 'INSERT INTO `postinfo` (`title`, `text`, `date`) VALUES (:title, :text, :date' ); $sth->bindParam( ':author', $_POST['title'] ); $sth->bindParam( ':title', $_POST['text'] ); $sth->bindParam( ':date', NOW()); $sth->execute(); }
Co zrobić aby automatycznie insertowało mi date jako czas w którym dodałem posta?