cloudlog/application/models/Search.php

20 lines
344 B
PHP
Raw Normal View History

<?php
class Search extends CI_Model {
function callsign_iota($reference) {
$this->db->where('COL_IOTA', $reference);
$query = $this->db->get($this->config->item('table_name'));
return $query;
}
2019-09-04 23:42:11 +01:00
function get_table_columns() {
$query = $this->db->query('DESCRIBE '.$this->config->item('table_name'));
return $query;
}
}
?>