/** * Store the date in the DB * * @param string $date */ public function setLatestEntry($date) { $sth = $this->conn->prepare("REPLACE INTO journals (date) VALUES (:date)"); $sth->bindValue(":date", $date); $sth->execute(); }
/** * Store the date in the DB * * @param string $date */ public function setLatestEntry($date) { $sth = $this->conn->prepare("REPLACE INTO journals (date) VALUES (:date)"); $sth->bindValue(":date", $date); $sth->execute(); }