ÿØÿà JFIFÿØÿà JFIF ÿØÿà JFIFÿØÿà JFIF   ÿþ$    File Manager

File Manager

Path: /home/u371470492/domains/theglitzcontest.com/public_html/

Melihat File: delete.php

<?php
session_start();
if (!isset($_SESSION['admin_logged_in'])) {
    header("Location: login.php");
    exit;
}
?>


<?php 	
	include 'config.php';
 ?>
 <?php 	
 	if (isset($_GET['submit'])) {
 		$id = $_GET['id'];
 		$sql= "DELETE FROM registration WHERE Id = '$id'";
 		if (mysqli_query($conn,$sql)) {?>
 			<script type="text/javascript">
			alert('Contestant sucessfully deleted');
			window.location= "change.php";
		</script>

 		<?php }else{?>

<script type="text/javascript">
	alert('Something went wrong, Please check id');
	window.location= "cchange.php";
</script>
 	<?php } ?>
 	<?php } ?>

<?php include 'topbar.php'; ?>
<html>
 <head>
  	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> 
    <link rel="stylesheet" href="css/css/materialize.css">
    <link rel="icon" href="img/LOGO TRANSPARENT.png">
 </head>
 <style type="text/css">
 	 body, html {
  height: 100%;
}


.bg {
  /* The image used */
  /*background-image: url("admin.png");*/
 
 background: #0f0c29;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #24243e, #302b63, #0f0c29); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


  /* Full height */
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.photo{
	background-color: white;
	border: 2px orange solid;
	border-radius: 4px;
	padding: 10px;
}
.delete{
	background-color: white;
	border: 2px orange solid;
	border-radius: 4px;
	padding: 10px;
}
h5{
	color: orange;
}
.btn{
	background-color: orange;
}
.btn:hover{
	background-color: white;
	color: orange;
}
 </style>

 <body class="bg">

 	<div class="container">
 	<br><br><br>

 	<h3 class="center white-text">Input the <span style="color: orange;font-size:40px">ID</span> of the contestant to be deleted</h3>
 	<div class="row">
 		<div class="col l3 m2 s1"></div>
 		<div class="col l6 m8 s10">
 	
 	<div class="photo">
 		<form action="" method="GET">	
 		<label>	
 			Contestant ID
 				<input type="text" name="id" placeholder="contestant ID">
 		</label>
 		<br>
 		<label>*Note: This action cannot be undone</label>
 		<div class="center">
 			<br>	
 		<button class="btn" name="submit" type="submit">
 			DELETE
 		</button> 
 		</div>
 		</form>
 	</div>
 	</div>
 	<div class="col l3 m2 s1"></div>
 </div>
 </div>
 <?php include 'bottombar.php'; ?>
 </body>
 </html>
ÿØÿà JFIF    ÿþ$ ÿØÿà JFIF    ÿþ$ ÿÂ