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 Code: dbutil() Then to do the test: PHP Code: if( !$this->dbutil->database_exists($answerDB) ){ 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!
Have you checked your spelling? This works fine for me
PHP Code: $this->load->dbutil();
if i read it correctly it looks like you check if an Database exists rather than the table exists or am i missing something here ?
|
Welcome Guest, Not a member yet? Register Sign In |