public function editOtherHistory() { require 'models/Revenue_model.php'; $model = new Revenue_model(); $id = $_POST['Id']; $description = $_POST['description']; $payment = $_POST['payment']; if ($model->editOtherHistory($id, $description, $payment)) { echo "Success"; } }