kopia lustrzana https://github.com/magicbug/Cloudlog
Cleaned up the code a bit
rodzic
4cff817526
commit
84419c24ff
|
@ -99,9 +99,7 @@ class Gridsquares_model extends CI_Model {
|
|||
$CI->load->model('Stations');
|
||||
$station_id = $CI->Stations->find_active();
|
||||
|
||||
$result = $this->db->query('SELECT COL_CALL, COL_TIME_ON, COL_BAND, COL_MODE, COL_SAT_NAME FROM '.$this->config->item('table_name').' WHERE station_id = "'.$station_id.'" AND COL_GRIDSQUARE LIKE "%'.$gridsquare.'%"
|
||||
AND COL_PROP_MODE = "SAT"
|
||||
');
|
||||
$result = $this->db->query('SELECT COL_CALL, COL_TIME_ON, COL_BAND, COL_MODE, COL_SAT_NAME FROM '.$this->config->item('table_name').' WHERE station_id = "'.$station_id.'" AND COL_GRIDSQUARE LIKE "%'.$gridsquare.'%" AND COL_PROP_MODE = "SAT"');
|
||||
|
||||
//print_r($result);
|
||||
return json_encode($result->result());
|
||||
|
|
Ładowanie…
Reference in New Issue