1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php require_once("check_login.php");
$message = "";
if (empty($_POST["config_value"])) { $message .= "Please enter the Config Value.\\n\\n"; }
if (!empty($message)) { echo "<script>alert('" . $message . "'); history.back();</script>"; exit; }
$id = $_POST["id"];
$sql = "update config set config_value=?, lastupdate=?, lastupby=? where id=?"; $parameters = array($_POST["config_value"], $nowdate, $_SESSION['cmsloginid'], $id); bind_pdo($sql, $parameters);
$dbh = null;
header("Location: config_index.php?msg=Modify Successfully");
|