Cloudlog/application/models/Search.php
2019-09-04 23:42:11 +01:00

25 lines
401 B
PHP

<?php
class Search extends CI_Model {
function __construct()
{
parent::__construct();
}
function callsign_iota($reference) {
$this->db->where('COL_IOTA', $reference);
$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;
}
}
?>