query("INSERT INTO `student_files` ( `extra`,`title`, `type` , `description` ,`file`) VALUES ('$extra','".$_POST['title']."','".$_POST['type']."','".$_POST['description']."', '".$filename."')"); echo ''; // } // else // { // echo ''; // } } if($_GET['action']=='del'){ $id = $_GET['id']; $con->query("DELETE FROM `student_files` WHERE `id` = '".$id."' "); echo ''; } if(isset($_POST['type'])){ extract($_POST); $con->query("INSERT INTO `links`(`type`, `label`, `link`) VALUES ('$type','$label','$link')"); $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; ?> '; echo '

'.ucwords(str_replace('_',' ',$page)).'

'; include 'setting/'.$page.'.php'; echo ''; include 'includes/footer.php'; ?>