$msg .= "<b>Listing updated successfully</b>";
             $msg = "<div class='alert alert-info'>" . $msg . "</div>";
         } else {
             $msg .= "An error occurred while updating data. Please try again.";
             $msg = "<div class='alert alert-error' id='error_box'>" . $msg . "</div>";
         }
     }
 } else {
     if (isset($_POST['btnEditSocial'])) {
         $fb = $_POST['txtFb'];
         $twitter = $_POST['txtTwitter'];
         $linkedin = $_POST['txtLinkedIn'];
         $video_chanel = $_POST['txtVideo'];
         $gbizObj = new Business();
         $gbizObj->setListingId($lid);
         $gbizObj->setSocialLinks($fb, $twitter, $linkedin, $video_chanel);
         $result = $gbizObj->update(4);
         if ($result) {
             $msg .= "<b>Listing updated successfully</b>";
             $msg = "<div class='alert alert-info'>" . $msg . "</div>";
         } else {
             $msg .= "An error occurred while updating data. Please try again.";
             $msg = "<div class='alert alert-error' id='error_box'>" . $msg . "</div>";
         }
     } else {
         if (isset($_POST['btnEditKeywords'])) {
             $keywords = $_POST['txtKeywords'];
             $gbizObj = new Business();
             $gbizObj->setListingId($lid);
             $gbizObj->setKeywordInfo($keywords);
             $result = $gbizObj->update(5);