public function deleteTable($table_id)
{
if (is_numeric($table_id)) {
$table_id = array($table_id);
}
if (!empty($table_id) and ctype_digit(implode('', $table_id))) {
$this->db->where_in('table_id', $table_id);
$this->db->delete('tables');
return $this->db->affected_rows();
}
}