Welcome Guest, Not a member yet? Register   Sign In
"How to bake a cake?"
#1

How can one get the name of a database using CodeIgniter 4? Can you provide a step-by-step tutorial or example of how to achieve this using CodeIgniter 4?
Reply
#2

CodeIgniter does not have anything like that. But you should be able to use like MySQLi DATABASE() to get it.
Other datbases should also have matching statements.

DATABASE() – Get the Current Database Name in MySQL
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB