• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
database_exists not working -- CI Newb here

I'm building an site that needs to build a database table on the fly the first time a user visits a certain page. I'm trying to detect if the table already exists before going through the hassle of building the table.

I am loading the
in the controller.

Then to do the test:
PHP Code:
if( !$this->dbutil->database_exists($answerDB) ){

being the table name that I'm testing for/trying to create.

The problem is that
) returns false every time, even if the table exists.

Should be straight forward but for some reason I'm missing something....

Any help is much appreciated.Thanks!

Messages In This Thread
database_exists not working -- CI Newb here - by ant099 - 03-27-2015, 09:22 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.