Direktori : /home/athamevents/public_html/admin/ |
Current File : /home/athamevents/public_html/admin/work_delete.php |
<?php include 'connection.php'; ?> <?php $id=$_REQUEST['id']; $reg=mysql_query("DELETE FROM work WHERE id='$id'"); if($reg==1) { ?> <script type="text/javascript"> var cn=<?php echo $id ?>; window.location.href="all_works.php"; </script> <?php } else { ?> <script type="text/javascript"> alert("Not complete"); var cn=<?php echo $id ?>; window.location.href="work_view.php?id="+ cn; </script> <?php } ?>