Mini Shell
<?php include 'connection.php'; ?>
<?php
$id=$_REQUEST["pp1"];
$wid=$_REQUEST["pp2"];
?>
<input type="hidden" name="pi" id="pi" value="<?php echo $id; ?>"/>
<?php
$delete=mysql_query("DELETE FROM work_pic WHERE id='$id'");
if($delete)
{
?>
<script>
alert("Delete Picture");
var cn=<?php echo $wid ?>;
window.location.href="work_pic_edit.php?wid="+ cn;
</script>
<?php
}
else
{
?>
<script>
alert("Procee not complete");
window.location.href="work_pic_edit.php";
</script>
<?php
}
?>
Zerion Mini Shell 1.0