adding date variable to an int variable....
Posted: Sat Sep 14, 2002 11:42 am
Any idea why this code doesnt work? $amount can be anything between 1 and 12. When I try to put it into a mysql db table, it simply leaves the field empty.
Thanks all
Code: Select all
$day = date("d");
if ($timescale == "monthly") {
$month = date("m");
$month+$amount;
}
else {
$year = date("y");
$year+$amount;
}Thanks all