[SOLVED] How to test if a database is connected - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: [SOLVED] How to test if a database is connected (/showthread.php?tid=74971) |
[SOLVED] How to test if a database is connected - John_Betong - 12-02-2019 I am having difficulty in trying to test if database has connected. I know that the database does not exist and would like the application to fail gracefully. When the database does not exist I would like to show download SQL database installation details. Edit: PHP Code: //============================================================ Next hurdle - create indexii |