/var/www/(Del)pathways.org.hk/MIS20140127/old20140414/Receipt/receipt_Deleted.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14

<?php include_once '../include/DBConnect.php'?>
<?php $edit_id 
$_GET['id']; ?>
<?php

$sth 
$dbh->prepare("UPDATE `receipt` SET `lastupby`=1,`lastupdate`=now(),`deleted` = 1 WHERE receipt_id = '$edit_id'");
$sth->execute();

$sth $dbh->prepare("UPDATE `invoice_receipt` SET `lastupby`=1,`lastupdate`=now(),`deleted` = 1 WHERE receipt_id = '$edit_id'");
$sth->execute();

echo 
"<script>alert('Delete data successful.')</script>";
echo(
"<script>location.href ='receipt_index.php';</script>");
?>