skip to Main Content

Data pass to codeigniter to ajax the function not working – Jquery

I try to pass a data code igniter controller to ajax request the written function not working Controller public function selectPlaygrounds() { $data = $this->branchatm->getCitiesFromState($state); $result=''; if($data){ foreach($data as $list){ $result.="<li ng-click='sawAll($list->city);'>$list->city</li>"; } } sendJsonResponse($result); } Ajax call $.ajax({ 'method':…

VIEW QUESTION

Codeigniter WHERE clause issue using NULL – PHP

Im trying to return records WHERE an individuals phone number is either empty as in '' or NULL. Please check this code out $this->db->select('i.id, i.name, i.phone, b.date') ->from('bookings AS b') ->join('individuals AS i', 'b.individual_id = i.id') ->where('b.status', 'confirmed') ->where('b.date >=',…

VIEW QUESTION

Error on AJAX Form Submit for CodeIgniter 4 – Jquery

I am trying to save records using AJAX Form Submit for CodeIgniter 4. This is my Controller: `<?php namespace AppControllers; use CodeIgniterController; use AppModelsPeopleModel; class PreRegController extends Controller { public function index() { helper(['form']); $data = []; echo view('pregistration', $data);…

VIEW QUESTION
Back To Top
Search