File size: 955B
<?php
/************************************
Script : Adnetwork
Website : http://facebook.com/pranto007
Script is created and provided by Pranto (http://facebook.com/pranto007)
**************************************/
include '../db.php';
include '../functions.php';
headtag("$SiteName - Delete AD Invoice");
if($adminlog==1){
$vid=formget("id");
if($_POST["yes"])
{
$doit=mysql_query("DELETE FROM adinvoice WHERE id='$vid'");
if($doit){
echo '<div class="success">AD Invoice Deleted!</div>';
}
}
else {
echo '';
}
echo '<div class="form"><form method="post">
Do You Really Want To Delete This AD Invoice? <br/>
<table><tr><td><input type="submit" name="yes" value="Yes"/></form></td><td><form action="adinvoices.php" method="post"><input type="submit" value="No"/></form></td></tr></table></div>';
echo '<a href="adinvoices.php"><div class="ua">AD Invoices</div></a>';
include '../foot.php';
}
else {
header('Location:index.php');
}
?>