Remove footer.php and some small improvements
This commit is contained in:
12
cable.php
12
cable.php
@@ -96,13 +96,21 @@ switch ($submit = form_get_action()) {
|
||||
$sth->bindValue(':type', $type, PDO::PARAM_STR);
|
||||
$sth->bindValue(':links', $links, PDO::PARAM_INT);
|
||||
$sth->bindValue(':info', $info, PDO::PARAM_STR);
|
||||
$sth->execute();
|
||||
try {
|
||||
$sth->execute();
|
||||
} catch (PDOException $e) {
|
||||
$g_error->Add($e->getMessage());
|
||||
}
|
||||
$action = ACT_VIEW;
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
$sth = $dbh->prepare("DELETE FROM cable WHERE cable_id=?");
|
||||
$sth->execute([$id]);
|
||||
try {
|
||||
$sth->execute([$id]);
|
||||
} catch (PDOException $e) {
|
||||
$g_error->Add($e->getMessage());
|
||||
}
|
||||
$action = ACT_DEFAULT;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user