/var/www/(Del)therainbows.org.hk/webadmin/actionmodify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php require("configure.php"); ?>
<?
$actionid        
$_POST["actionid"];
//$actiondescen    = $_POST["actiondescen"];
$actiondescen     preg_replace("/'/","\'",$_POST["actiondescen"]);
//$actiondesctc    = $_POST["actiondesctc"];
$actiondesctc     preg_replace("/'/","\'",$_POST["actiondesctc"]);
//$actiondescsc    = $_POST["actiondescsc"];
$actiondescsc     preg_replace("/'/","\'",$_POST["actiondescsc"]);

$sql "update action set actionid='$actionid', actiondescen='$actiondescen', actiondesctc='$actiondesctc', actiondescsc='$actiondescsc' ";
$sql .= " where actionid="$actionid ." ";
//echo $sql;
mysql_query($sql);
mysql_close($dbh);

header("Location: actionmodifyform.php?actionid=1&msg=Modify Successful");
?>