⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Error Number: 1103 Incorrect table name ''



phurtado1112
  • profile picture
  • Member

Posted 23 October 2019 - 02:04 AM

Hello,

 

I need help with this database error,

 

I review the others topics about this error but they are too old, the last one is form 2017.

 

I'm using:

 

Grocery CRUD 1.6.3 with

Codeigniter 3.1.11 and

MySQL 8.0.

 

My app in Codeigniter is running OK without Grocery CRUD, but when I try to use Grocery CRUD sent me this error:

 

Error Number: 1103

Incorrect table name ''

SHOW COLUMNS FROM ``

Filename: models/Grocery_crud_model.php

Line Number: 436

The database.php is using mysqli and is ok configured.

 

This is my controller:

 

class MyControler extends \CI_Controller {
function __construct() {
parent::__construct();
}
 
public function catalog() {
$crud = new \Grocery_CRUD();
$crud ->set_table('myTable');
 
$output = $this->grocery_crud->render();
$this->_example_output($output);
}
 
function _example_output($output = null) {
$this->load->view('MyView',$output);
}
}
 
And this is my view:
 
 
<section>
    <div class="container">
        <div class="row">
            <div class="col-10 offset-1">
                <div style='height:60px;'></div>
                <div style="padding: 10px">
<?php echo $output; ?>
                </div>
            </div>
        </div>
    </div>
</section>