I need help, I have 2 tables Client and Product. I want to fetch data from Product Table on basis of Client Table and show it as whole. I want the table to show the record as: How can I show them using MVC CI. Model Controller Answer Client Controller Code:- Client_model Model Code:- ViewClient View Page:-
Tag: codeigniter
Codeigniter : on selection of a value from drop down change value of checkbox
I have 3 tables say:- invoice_details, customer_details and bill_address. The invoice form has a dropdown and a checkbox. Customer names are listed in the dropdown from the customer table. And when I …
modal not working when use on click event
the button, use to click that pass direct to open in the modal modal section, after button clicked the modal suppose to open and show the data Jquery and ajax, i use on click event to get the id and pass then to the ajax in order to return data from a controller Note:- This cant open a modal after
codeigniter 4 – Controller or its method is not found
it’s running fine when i tested in local server, but when i uploaded 000webhost server to it’s showing an error. an error My Routes: my routes : can anyone helping me? my controller an error i try to hide detail’s method in url, it’s running fine in local server but why it’s showing an error when i uploaded to web
How can I use route namespace?
I am creating routes in codeigniter-4 and I want to know if I can use namespace for some routes like with laravel given below: Laravel namespace Code Can I implement something similar in codeigniter-4 ? My Codeigniter code Answer Yes you can. https://codeigniter.com/user_guide/incoming/routing.html#assigning-namespace
Update about 1 million rows in MySQL table every 1 hour
I use Codeigniter 3.1.11 and have a question. I need to update about 1 million (in future will be much more) rows in MySQL table every 1 hour by Cron. But problem is if I update more than about 200-300 rows using this code, my server CPU is 100% loaded and table is stopping update after about 200-300 rows. And
ajax select data with multiple related data
i want to show checkbox looping from db, if i try to select data id_kendaraan in field then show the data from that id. this my view code: my controller: i get data from view $id_kendaraan for my parameter. this my model: but if i try this code, field tahun_beli, id jenis is success to showing in the view. but
temporary name of file uploaded not getting in blueimp jQuery file upload
i am using blueimp jQuery file upload for file uploader.This is my controller code. public function savedocument() { $response = array(‘status’ => ‘failed’, ‘message’ => ‘Unknown reason’)…
Trying to upload multiple resized images in codeigniter php
I am trying to upload multiple images to a folder and save an encrypted image name in db. However, the code I have written, resizes the image, but saves original image name in database. Example: if …
Why The Select Option Didn’t Showing Number?
i have some problems. Where my stock produk size is “100-199” The Select Option just showing this : If in my product have stock is 1-99 and 200-999 i didn’t get this error. The select option is fine and showing a number. In my case stok s and stok m the select option showing the number. This my db :