Tables_model::getTable PHP Method

getTable() public method

public getTable ( $table_id )
    public function getTable($table_id)
    {
        $this->db->from('tables');
        $this->db->where('table_id', $table_id);
        $query = $this->db->get();
        if ($query->num_rows() > 0) {
            return $query->row_array();
        }
    }