$generalobj->getRequestVars(); $redirect_file="index.php?file=$file&view=$view&iStatusID=$iStatusID"; $generalobj->checkDuplicate('iStatusID', PRJ_DB_PREFIX."_status_master", Array("$language"=>$Data["$language"]), $redirect_file, STATUS_ALREADY_EXISTS, $iStatusID); */ if ($view == "add") { //prints($Data);exit; $stMstrObj->setAllVar($Data); $result = $stMstrObj->insert(); if ($result) { $var_msg = "Record Added Successfully."; } else { $var_msg = "Eror-in Add."; } } else { if ($view == "edit") { //prints($Data);exit; $arr = $stMstrObj->select($iStatusID); $stMstrObj->setAllVar($arr); $stMstrObj->setAllVar($Data); $where = " iStatusID = '" . $iStatusID . "'"; $result = $stMstrObj->update($where); if ($result) { $var_msg = "Record Updated Successfully."; } else { $var_msg = "Eror-in Update."; } } } generate_language_file(); header("Location:index.php?file=" . $actionfile . "&view=index&AX=Yes&var_msg={$var_msg}"); exit;