| Current Path : /home2/wtmwscom/www/member/ |
| Current File : /home2/wtmwscom/www/member/process_extend.php |
<?php session_start();
include "../connection.php";
if(!isset($_SESSION['userid'])) die('Unauthorized');
$helpid = $_GET['helpid'];
/*
$extend = mysqli_fetch_object(mysqli_query($connection,"SELECT extend FROM help WHERE help_id='$helpid'"))->extend;
if($extend<48){
$isupdate = mysqli_query($connection,"update help set extend=extend+24 where help_id='$helpid'");
}
else{
$isupdate = mysqli_query($connection,"update help set extend=48 where help_id='$helpid'");
}
*/
$isupdate = mysqli_query($connection,"update help set extend=24 where help_id='$helpid'");
$msg = $isupdate ? "Time extend successfully." : "Failed, Some error occured,Try again";
echo $msg;
?>