Success and Failure message after ajax call in php
when user submit form or update data in database table using jquery ajax call then success and failure notification message show on the popup alert to the user.
if action is successfully perform then ajax show success message using sweet alert. other wise it show failure message .
/*
var $form = $(this),
var title = $('#title').val();
var body = $('#body').val();
var url = $form.attr('action');
var method = $form.attr('method');
*/
public function new_action_plan() {
$tech_id=$this->input->post('tech_id');
....................
....................
....................
$data_msg = array(
'msg'=>'You have already filled data of this technical committees of financial year',
'status'=>'0'
);