/var/www/(Del)skdb.hk/admin/calendarmodify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php require("configure.php"); ?>
<?
$calendarId            
$_POST["calendarId"];
$datefr                $_POST["datefr"];
$dateto            $_POST["dateto"];

$categoryId            $_POST["categoryId"];

$calTitle            $_POST["calTitle"];
$calDesc            $_POST["calDesc"];
$calDesc            str_replace("'""&quot;",$calDesc);
$calType            $_POST["calType"];

///echo $_FILES['imagefile']['tmp_name'];
//echo "<br>";
//echo $_FILES['imagefile']['name'];



//$newscreationDate = date("Y-m-d");
$sql "update Calendar set calendarId='$calendarId', datefr='$datefr', dateto='$dateto', categoryId='$categoryId', calTitle='$calTitle', calDesc='$calDesc', calType='$calType' ";
$sql .= "where calendarId="$calendarId ." ";
//echo $sql;
mysql_query($sql);
mysql_close($dbh);

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