Exemplo n.º 1
0
 public function SaveCommentDetail(CommentDetails $commentDetails)
 {
     try {
         $SQL = self::$INSERTDETAILS;
         $conn = self::$db->getConnection();
         $stmt = $conn->prepare($SQL);
         $stmt->bindValue(':commentseq', $commentDetails->getCommentSeq());
         $stmt->bindValue(':commentsuser', $commentDetails->getCommentsUser());
         $stmt->bindValue(':comments', $commentDetails->getComments());
         //$stmt->bindValue(':isprivate',$commentDetails->getIsPrivate());
         $stmt->execute();
         $error = $stmt->errorInfo();
     } catch (Exception $e) {
         $e;
     }
 }