Subsequent fixes after major changes for PDO
This commit is contained in:
@@ -13,14 +13,14 @@ $subnet_id = sanitize($_GET['subnet_id']);
|
||||
|
||||
include("header.php");
|
||||
|
||||
$sql = "SELECT subnet_address, subnet_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([$subnet_id]);
|
||||
$smarty->assign("subnet", $sth->fetch(PDO::FETCH_OBJ));
|
||||
|
||||
|
||||
$smarty->display("subnetvlanedit.tpl");
|
||||
|
||||
|
||||
include("footer.php");
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user