/var/www/(Del)explorer-island.com/old/webadmin/policiesmodify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php require("configure.php"); ?>
<?
$pid        
$_POST["pid"];
$ptitleen    htmlspecialchars($_POST["ptitleen"],ENT_QUOTES);
$pdescen    preg_replace("/'/","\'",$_POST["pdescen"]);
$ptitletc    htmlspecialchars($_POST["ptitletc"],ENT_QUOTES);
$pdesctc    preg_replace("/'/","\'",$_POST["pdesctc"]);
$i_pref        $_POST["orderno"];

$sql "update policies set pid='$pid', ptitleen='$ptitleen', pdescen='$pdescen', ptitletc='$ptitletc', pdesctc='$pdesctc', pref=$i_pref ";
$sql .= "where pid="$pid ." ";
//echo $sql;
mysql_query($sql);
mysql_close($dbh);

header("Location: policiesindex.php?msg=Update Successful");
?>