03-27-2015, 09:22 AM
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:
with 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!
I am loading the
Code:
dbutil()
Then to do the test:
PHP Code:
if( !$this->dbutil->database_exists($answerDB) ){
CREATION CODE HERE
}
with
Code:
$answerDB
The problem is that
Code:
$this->dbutil->database_exists(
Should be straight forward but for some reason I'm missing something....
Any help is much appreciated.Thanks!