CodeIgniter Forums

Full Version: PHP Fatal error: Call to a member function query() on boolean in Codeigniter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just am running my codeigniter project, its shows 500 error in browser and checking error log its shows like below,

PHP Fatal error: Call to a member function query() on boolean in /var/www/html/myproject/system/database/drivers/mysqli/mysqli_driver.php on line 221
How can i fix this issue?
Please provide the screenshot.
(09-14-2017, 11:45 PM)Midhun Mohanan P Wrote: [ -> ]Please provide the screenshot.

PFA

[attachment=992]

[attachment=993]
It looks like a server error that it cannot find the MySQL server database.

Check your database config.
(09-15-2017, 05:01 AM)InsiteFX Wrote: [ -> ]It looks like a server error that it cannot find the MySQL server database.

Check your database config.

Issue fixed. Database hostname only having problem.