常用方法
常用方法
常用方法
常用方法
public function updatePriority(Todo $todo){ $query = $this->_db->prepare(' UPDATE t_todo SET priority=:priority WHERE id=:id') or die (print_r($this->_db->errorInfo())); $query->bindValue(':id', $todo->id()); $query->bindValue(':priority', $todo->priority()); $query->execute(); $query->closeCursor(); }