Вы, вероятно, хотите это:
// Store as a timestamp
$registratiedag = strtotime($oUser['UserRegisterDate']);
$new_date = strtotime('+6 days', $registratiedag);
// You'll need to format for printing $new_date
echo date('Y-m-d', $new_date);
// I think you want to compare $new_date against
// today's date. I'd recommend a string comparison here,
// As time() includes the time as well
// time() is implied as the second argument to date,
// But we'll put it anyways just to be clearer
if( date('Y-m-d', $new_date) == date('Y-m-d', time()) ) {
// The dates are equal, do something here
}
else if($new_date < time()) {
// if the new date is earlier than today
}
// etc.
Сначала он преобразует $registratiedag
в метку времени, затем добавляет 6 дней
РЕДАКТИРОВАТЬ : Вы, вероятно, должны изменить $today
на что-то менее вводящее в заблуждение, например $modified_date
или что-то