Direktori : /home/athamevents/public_html/admin/ |
Current File : /home/athamevents/public_html/admin/cat_insert.php |
<?php include 'connection.php'; ?> <?php $name=$_REQUEST['name']; $reg=mysql_query("insert into cat values('','$name') "); if($reg==1) { ?> <script type="text/javascript"> window.location.href="add_cat.php"; </script> <?php } else { ?> <script type="text/javascript"> alert("Not complete"); window.location.href="add_cat.php"; </script> <?php } ?>