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