I have one particular problem, I have script which should issue bill statement. Now what I want is that the due date of the bill must be 14 days after the issued date.
$issue_date = mysql_real_escape_string(trim($_post['issued_date']));
$due_date = mysql_real_escape_string(trim($_POST['due_date']));
$query = "insert into utility (issue_date, due_date)values(now(),now()+ (60 * 60 * 24 *14)";
But that is not really working at all. Any help please?
Try using the
DATE_ADDfunction: