* ADDING 3 DAYS FROM TODAY WITH CONVERT FROM MILLI SEC'S:
echo date("Y-m-d H:i:s",strtotime(date("Y-m-d H:i:s", strtotime(NOW)) . " + 3 day"));(OR)
echo date("Y-m-d H:i:s",strtotime(date("Y-m-d H:i:s", strtotime(NOW)) . " + ".$trail_period."day"));
http://192.168.10.200/android-license/licenseCheck.php?device_id=5454548784454
#Delete Records
if(isset($_REQUEST['delete']))
{
$arr=array('device_status'=>'D');
$update = $db->update(DEVICES,"device_id=".$delete."",$arr);
if($update){echo "";
echo'';}
}
list.php?delete=&token="
class="add_link" onclick="return confirm('Are you surely want to do the action?');"> |
#if perm-delete records
if(isset($_REQUEST['del']))
{
$sqldel = $db->select_query(GALLERY,"*","gal_id='".$del."'","1");
$delexist = image_exist($sqldel['gal_image'],"../../uxf/album/");
$path="../../uxf/album/";
if($delexist)
{
unlink($path.$sqldel['gal_image']);
}
$update = $db->delete_query(GALLERY,"gal_id='".$del."'");
if($update){echo "";
echo'';}
}
list.php?del=&token="
class="add_link" onclick="return confirm('Are you surely want to do the action?');"> |
#update records
if($btn_status=="Update")
{
foreach($chkall as $id)
{
$arr=array('expiry_date'=>$position[$id]);
$update = $db->update(DEVICES,"device_id=".$id."",$arr);
}
if($update){echo "";
echo'';}
}
|