예제 #1
0
 public function addPhoto($photo, $product_id)
 {
     $dao = new dao();
     try {
         $dao->edit("product", "photo", $photo, "id", $product_id);
     } catch (Exception $e) {
         throw new Exception("Failed addging url picture message: " . $e->getMessage());
     }
 }