CRUD Operation with AJAX CodeIgniter 3 in PHP
<?php defined ( "BASEPATH" ) or exit ( "No direct script access allowed" ); class AjaxCrud extends CI_Controller { public function __construct () { parent :: __construct (); $this -> load -> model ( "AjaxModel" ); } public function index () { return $this -> load -> view ( "Ajax/create" ); } public function getRecord () { $result = $this -> AjaxModel -> getAllData (); echo json_encode ( $result ); } public function dataInsert () { $data = array ( "name" => $this -> input -> post ( "name" ), "email" => $this -> input -> post ( ...