Updated application to use bool and int instead of boolean and integer. Also added an order by to the getSubscriptionCounties function
This commit is contained in:
@@ -251,7 +251,8 @@ class Counties extends Base {
|
||||
public function getCounties() {
|
||||
|
||||
$SQL = "select view_counties.*
|
||||
from view_counties";
|
||||
from view_counties
|
||||
order by view_counties.county_name";
|
||||
|
||||
return $this->getTable("counties", $SQL);
|
||||
}
|
||||
@@ -264,7 +265,8 @@ class Counties extends Base {
|
||||
|
||||
$SQL = "select view_counties.*
|
||||
from view_counties
|
||||
where view_counties.county_area = '{$area}'";
|
||||
where view_counties.county_area = '{$area}'
|
||||
order by view_counties.county_name";
|
||||
|
||||
return $this->getTable("counties", $SQL);
|
||||
}
|
||||
@@ -277,7 +279,8 @@ class Counties extends Base {
|
||||
|
||||
$SQL = "select view_counties.*
|
||||
from view_counties
|
||||
where view_counties.county_name = '{$county_name}'";
|
||||
where view_counties.county_name = '{$county_name}'
|
||||
order by view_counties.county_name";
|
||||
|
||||
return $this->getTable("counties", $SQL);
|
||||
}
|
||||
@@ -311,7 +314,7 @@ class Counties extends Base {
|
||||
|
||||
$recordset = $statement->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
$count = (count($recordset) > 0) ? (integer) $recordset["count"] : (integer) 0;
|
||||
$count = (count($recordset) > 0) ? (int) $recordset["count"] : (int) 0;
|
||||
|
||||
// Pagination
|
||||
|
||||
@@ -387,7 +390,8 @@ class Counties extends Base {
|
||||
|
||||
$SQL = "select view_subscriptioncounties.*
|
||||
from view_subscriptioncounties
|
||||
where view_subscriptioncounties.subscriptioncounty_subscription = '{$subscription_serial}'";
|
||||
where view_subscriptioncounties.subscriptioncounty_subscription = '{$subscription_serial}'
|
||||
order by view_subscriptioncounties.subscriptioncounties_county_name_verbose";
|
||||
|
||||
return $this->getTable("subscriptioncounties", $SQL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user