<?php
$brid1 = "2017-02-15"; //ตรงนี้รับค่า จากตัวแปร ที่ผมจะทำครับ แต่พอเวลาเพิ่มวันยังไม่ได้ครับ
$today = date("Y-m-d"); //จุดต้องเปลี่ยน
list($byear, $bmonth, $bday)= explode("-",$today); //จุดต้องเปลี่ยน
list($tyear, $tmonth, $tday)= explode("-",$brid1); //จุดต้องเปลี่ยน
$mbirthday = mktime(0, 0, 0, $bmonth, $bday, $byear);
$mnow = mktime(0, 0, 0, $tmonth, $tday, $tyear );
$mage = ($mbirthday - $mnow);
$u_y=date("Y", $mage)-1970;
$u_m=date("m",$mage)-1;
$u_d=date("d",$mage)-1;
echo "วันเกิด $brid1"."<br>\n";
echo "วันที่ปัจจุบัน $today"."<br>\n";
แล้วก็โค้ดนี้ครับ--------------------------------
$strCurrDate = strtotime($datedee);
date("Y-m-d", mktime(date("H",$strCurrDate)+0, date("i",$strCurrDate)+0, date("s",$strCurrDate)+0, date("m",$strCurrDate)+0 , date("d",$strCurrDate)+5, date("Y",$strCurrDate)+0));
echo $strCurrDate;