$table = 'ed_table1'
if(!$this->db->table_exists($table)){
$sql = "CREATE TABLE IF NOT EXISTS $table LIKE ed_table";
if (! $res = $this->db->query($sql)) {
throw new exception('create_table_failure')
}
}
$table = 'ed_table1'
if(!$this->db->table_exists($table)){
$sql = "CREATE TABLE IF NOT EXISTS $table LIKE ed_table";
if (! $res = $this->db->query($sql)) {
throw new exception('create_table_failure')
}
}