diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 685d0160..97c20cb4 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -1712,6 +1712,25 @@ class Logbook_model extends CI_Model { return $this->db->query($sql); } + /* + * Function returns all the station_id's with QRZ API Key's + */ + function get_station_id_with_qrz_api() { + $sql = 'select station_id, qrzapikey from station_profile + where coalesce(qrzapikey, "") <> ""'; + + $query = $this->db->query($sql); + + $result = $query->result(); + + if ($result) { + return $result; + } + else { + return null; + } + } + /* * Function returns all the station_id's with HRDLOG Code */