1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php require("inc/configure.php"); require("inc/global.php"); require("inc/checklogin.php"); if($logged_in == 0){ header('Window-target: _parent'); header('Location: login.php'); exit(); } $receiptno = $_GET['receiptno'];
$sql = "delete from AR_RECEIPT_HDR where receiptno = '$receiptno'";
mysql_query($sql);
$sql = "delete from AR_RECEIPT_DTL where receiptno = '$receiptno'";
mysql_query($sql);
header("Location: receipt.php"); ?>
|