Category: Codeigniter

Database Query in Codeigniter

1) Configure database connection Application/config/database.php Hostname, Username, Password, Database name 2) Create controller and model name is Home_model Here, I have created a controller...

How to show message on view in codeigniter?

**Set flash data in controller** message – flash data session name. $this->session->set_flashdata(‘message’, ‘Sucessfully updated.’); Read flash data(Pass in view with bootstrap alert) session->flashdata(‘message’)){?> session->flashdata(‘message’)?>

session error in codeigniter?

change your application->config->config.php and set $config = ‘database’; $config = ‘ci_session’; $config = 7200; $config = ‘ci_sessions’; $config = FALSE; $config = 300; $config...