$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); 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['btnEditBanners'])) { $banerType = $_POST['listType']; $caption = $_POST['txtCaption']; $urlProtocol = $_POST['listAdUrlProtocol']; $destination = $_POST['txtDestination']; $adUrl = $urlProtocol . $destination; if ($destination == NULL) {