Setup Database and check connection |
I have my first attempt(i never used a framework) to use CodeIgniter 4.
What I try to achieve is to setup database in CodeIgniter and check in controller if it works. For database I use MySQL Community Server 8.0.19: https://dev.mysql.com/downloads/mysql/ This is the controller: Code: class Testdb extends BaseController{ And this is Database.php: Code: public $default = [ When I check in browser I get this error: `mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, object given`. I test the connection for db with MySQL Workbench and everything works fine. What I do wrong and how to fix it? |
Messages In This Thread |
Setup Database and check connection - by raul1ro - 03-20-2020, 07:35 AM
RE: Setup Database and check connection - by jreklund - 03-20-2020, 10:52 AM
RE: Setup Database and check connection - by raul1ro - 03-20-2020, 11:39 AM
|