Thank you nanny79,
$enddate = date('d/m/Y',strototime($startdate)+(60*60*24*$numOfDay));
Now it work.but there still the problem.I'm adding echo code for displaying the date(for testing purpose) here the code:
$enddate = date('d/m/Y',strtotime($start_date)+(60*60*24*$numOfDay));
echo $enddate;
It display the date correctly.
Then,I just modify the code to insert it to database.Here the code:
$enddate = date('d/m/Y',strtotime($start_date)+(60*60*24*$numOfDay));
$date_elem = explode('-',$enddate);
$end_date = date('Y-m-d', mktime( 0,0,0,$date_elem[1],$date_elem[0],$date_elem[2]) );
//connect to database code
$sql = "INSERT INTO tarikh (date_, numOfDay, enddate) VALUES ('$start_date','$numOfDay', '$end_date')";
$dbResult = mysql_query ($sql,$db);
When I check the data base,the day is diaplay correctly but the month and year keep displaying 12/1999........I think the $numOfDay need to be multiply with some more number,but I don't remember the numbers.Anyone have any idea.
Thank you in advance.