original data echo data upated data does not updated into databse Controller Update I got the id from the form and pass the value to show the data on the next page. It will show certain data based on the user click which row button. Model Update I have passed the id when updating the data, and It will not
Tag: codeigniter-3
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
How to get next and previous id on CodeIgniter3?
I have the following DB. As you can see, the ID is missing a tooth. so you cannot get a valid previous or next ID by simply adding or subtracting 1 to the current ID In SQL, to get a valid back and forth ID, I would write the following. I want to get this kind of record retrieval in
Codeigniter 3 application bug: logged in user’s avatar does not update in real time
I am working on a basic blog application with Codeigniter 3.1.8 and Bootstrap 4. The application has user (author) accounts. There is a problem with displaying the photo (avatar) of the logged-in …
PHP Codeigniter Session error: Message: session_cache_limiter(): Cannot change cache limiter when session is active
php -v:7.3.11 codeigniter -v:3.0.3 A PHP Error was encountered Severity: Warning Message: session_cache_limiter(): Cannot change cache limiter when session is active Filename: core/MY_Controller….
how to separate config.php, database.php, constant.php file domain specific in codeigniter v3.1.10?
I’m using codeigniter v3.1.10 and i have two projects with domain name abc.example.com and xyz.example.com. i know that in codeigniter according to the environment production or development we could …
codeigniter sql backup works fine in local server but in live it shows error
A PHP Error was encountered Severity: Notice Message: Only variables should be assigned by reference **this is my controller code ** public function data_backup() { $this->load->dbutil(); …
How to disable ONLY_FULL_GROUP_BY in codeigniter?
I have worked may time with Group BY in mysql but recently i have received a problem of Group By. I searched from many sites and I got the problem that its due to upgrading the mysql version in which it is enabled and in old versions it was disabled. I won’t remove it using the query but from the
How to retrieve the array values from multiples checkbox?
How to retrieve the array values from multiples checkbox? I have problem when I retrieve value array and echo the value. I get this error Severity: Warning Message: in_array() expects parameter 2 to …
Fatal error: Assignments can only happen to writable values in C:xampphtdocsdogsapplicationcontrollers
I use a local XAMPP server. PHP version 7.2.13 CodeIgniter 3.1.10 When I try to call the page posts, I get this error message: In Sublime line Number 16 corresponds to: $data = [‘title’] = ‘Latest Posts’; My controller file Post.php: My view file index.php: Answer Try this :