hi all ,im runing a timer on auction site and any product got his ending time ,i want to have an automatic rule to have 30 minutes more to an auction if the time was ended ,i want to update the server with the new date and to have the current time +30 minutes!!
this is what i got this far:
when im runing this code the expire_date is geting the new date and time!
what i need to do to had 30 minutes more to the timer?
thanx!
this is what i got this far:
Code:
<? $dt=time();
echo $date=date('Y-m-d H:i:s',$dt);?>
<?
if ($rem < 11 && $expire_date=$expire_date){
$sql_update_time="update bidding_main set expire_date = '$date' where bid_id='$bid_id'";
mysql_query($sql_update_time)or die(mysql_error());}
?>
what i need to do to had 30 minutes more to the timer?
thanx!
Comment