1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php class Image { public static function deleteOwnedBy($userid) { if ($userid === false || !is_numeric($userid)) return false; return Database::exec('DELETE FROM image WHERE ownerid = :userid', array('userid' => $userid)); } }