home/skymarketplace/public_html/models/HeroModel.php 0000644 00000001120 15003701101 0016645 0 ustar 00 db = $db;
}
public function insertHeroImage(string $imageName): bool
{
$stmt = $this->db->prepare("INSERT INTO hero_images (image) VALUES (:image)");
return $stmt->execute(['image' => $imageName]);
}
public function deleteHeroImage(int $id): bool
{
$stmt = $this->db->prepare("DELETE FROM hero_images WHERE id = :id");
return $stmt->execute(['id' => $id]);
}
}