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

File Manager

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

Melihat File: add3.php

<?php 
include 'config.php';
 session_start();
 ?>

 <?php 
 if (isset($_SESSION['id'])) {
 	$iid= $_SESSION['id'];
 	if (isset($_SESSION['vott'])) {
 		$votes=$_SESSION['vott'];

}	
 } 		
			$sql="SELECT stage_three_vote FROM registration WHERE Id = '$iid'";
			$cont=mysqli_query($conn,$sql);
			$old_votes=mysqli_fetch_all($cont,MYSQLI_ASSOC);			
			$old_votes=$old_votes[0]['stage_three_vote'];
			$new_votes= $old_votes + $votes;

$sql = "UPDATE registration SET stage_three_vote='$new_votes' WHERE Id = $iid";

if (mysqli_query($conn,$sql)) {?>
	<script>
		alert('Votes added successfully');
		</script>
	<?php 
	if (isset($_SESSION['id'])) {
	session_destroy();
		if (isset($_SESSION['code_status'])) {
		session_destroy();
		}else{
			header('Location:script.php');
		}
	}else{
		header('Location:script.php');
	}
	?>
	<script type="text/javascript">
		alert("Votes added successfully");
		window.location= "script.php";
	</script>
<?php 	
}

  ?>
  <script>
		alert('Votes added successfully');
		</script>
ÿØÿà JFIF    ÿþ$ ÿØÿà JFIF    ÿþ$ ÿÂ