Home » Tag Archives: database utility class codeigniter

Tag Archives: database utility class codeigniter

Check database exists in codeigniter

Load the Database Utility Class Notice: Databse Connection should be already established before loading the above class. <?php $this->load->dbutil(); ?> loaded class can access the functions using the  following method: <?php $this->dbutil->some_function() ?> <?php $this->dbutil->list_databases(); ?> the above function will  show an array of database names: <?php $dbs_smarttips = $this->dbutil->list_databases(); ?> <?php foreach ($dbs_smarttips as $db_name) { echo $db_name; } ?> ...

Read More »