コード例 #1
0
 public function deletePost()
 {
     $database = new Database();
     $id = (int) $this->id;
     $dml = sprintf("delete from post where id = %d limit 1", $id);
     return $database->executeDml($dml);
 }
コード例 #2
0
ファイル: style.php プロジェクト: k4hun/beers-blog-php
 public function delete($id)
 {
     $db = new Database();
     $id = (int) $id;
     $dml = sprintf("DELETE FROM styles WHERE id = %d", $id);
     return $db->executeDml($dml);
 }