Subsequent fixes after major changes for PDO
This commit is contained in:
@@ -13,12 +13,11 @@ $subnet_id = sanitize($_GET['subnet_id']);
|
||||
|
||||
include("header.php");
|
||||
|
||||
$sql = "SELECT subnet_id AS id, subnet_address AS address,
|
||||
subnet_mask AS mask
|
||||
$sql = "SELECT subnet_id AS id, subnet_address AS address, subnet_mask AS mask
|
||||
FROM subnet
|
||||
WHERE subnet_id=?";
|
||||
$sth = $dbh->prepare($sql);
|
||||
$sth->execute([$zone_id]);
|
||||
$sth->execute([$subnet_id]);
|
||||
$smarty->assign("subnet", $sth->fetch(PDO::FETCH_OBJ));
|
||||
|
||||
$smarty->assign("location_options", db_get_options_location());
|
||||
|
||||
Reference in New Issue
Block a user