Cloudlog/application/models/Search.php
2022-01-09 12:09:35 +01:00

25 行
无行尾
603 B
PHP

<?php
class Search extends CI_Model {
function callsign_iota($reference) {
$CI =& get_instance();
$CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
$this->db->where('COL_IOTA', $reference);
$this->db->where_in('station_id', $logbooks_locations_array);
$query = $this->db->get($this->config->item('table_name'));
return $query;
}
function get_table_columns() {
$query = $this->db->query('DESCRIBE '.$this->config->item('table_name'));
return $query;
}
}
?>