1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php require("configure.php");
if (!isset($_SESSION["cmslogin"])) { header("Location: login.php"); exit; }
$conlistid = $_POST["conlistid"]; $conname = htmlspecialchars($_POST["conname"], ENT_QUOTES); $conposition = htmlspecialchars($_POST["conposition"], ENT_QUOTES);
$sql = "update conlist set conlistid='$conlistid', conname='$conname', conposition='$conposition' "; $sql .= "where conlistid=" . $conlistid . " ";
mysql_query($sql); mysql_close($dbh);
header("Location: conlistindex.php?msg=Update Successful"); ?>
|