diff --git a/application/models/Waja.php b/application/models/Waja.php index a5829e45..9b0c9c23 100644 --- a/application/models/Waja.php +++ b/application/models/Waja.php @@ -215,7 +215,7 @@ class WAJA extends CI_Model { * $postdata contains data from the form, in this case Lotw or QSL are used */ function getWajaWorked($location_list, $band, $postdata) { - $sql = "SELECT distinct col_state FROM " . $this->config->item('table_name') . " thcv + $sql = "SELECT distinct LPAD(col_state, 2, '0') AS col_state FROM " . $this->config->item('table_name') . " thcv where station_id in (" . $location_list . ")"; if ($postdata['mode'] != 'All') { @@ -252,7 +252,7 @@ class WAJA extends CI_Model { * $postdata contains data from the form, in this case Lotw or QSL are used */ function getWajaConfirmed($location_list, $band, $postdata) { - $sql = "SELECT distinct col_state FROM " . $this->config->item('table_name') . " thcv + $sql = "SELECT distinct LPAD(col_state, 2, '0') AS col_state FROM " . $this->config->item('table_name') . " thcv where station_id in (" . $location_list . ")"; if ($postdata['mode'] != 'All') {