2013-08-06 22:02:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Search extends CI_Model {
|
|
|
|
|
|
|
|
function callsign_iota($reference) {
|
|
|
|
$this->db->where('COL_IOTA', $reference);
|
2022-02-06 08:41:11 +00:00
|
|
|
$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
|
|
|
|
$this->db->where('station_profile.user_id', $this->session->userdata('user_id'));
|
2013-08-06 22:02:49 +00:00
|
|
|
$query = $this->db->get($this->config->item('table_name'));
|
|
|
|
|
|
|
|
return $query;
|
|
|
|
}
|
|
|
|
|
2019-09-04 22:42:11 +00:00
|
|
|
function get_table_columns() {
|
|
|
|
$query = $this->db->query('DESCRIBE '.$this->config->item('table_name'));
|
|
|
|
|
|
|
|
return $query;
|
|
|
|
}
|
|
|
|
|
2013-08-06 22:02:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|