D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
balhit1357
/
balhit.ac.in
/
bal-vidyalaya
/
admin
/
Filename :
tcdelete.php
back
Copy
<?php session_start(); require_once 'include/connection.php'; $uname="".$_SESSION['user_name']; if(!$_SESSION['user_name']) { $_SESSION['redirectURL'] = $_SERVER['REQUEST_URI']; ?> <script>window.location.href='index.php';</script> <?php }?> <?php if( isset( $_SESSION['user_name']) ) { $id = $_GET["id"]; $rs1 = mysqli_query($link, "select datapath from tc_detail where sn='$id'"); $row1 = mysqli_fetch_array($rs1); $path = $row1["datapath"]; //unlink("tcfile/".$path); $rs = mysqli_query($link, "delete from tc_detail where sn='$id'"); ?> <script> alert('Successfully deleted'); window.location.href="tc_report.php"; </script> <?php } ?>