$days = intval($_GET['days']); $hostid = intval($_GET['hostid']); $days_prev = $days + 2; $days_next = $days - 2; echo " -2 days "; echo " +2 days"; echo "