Hi
I am working to add 1 month to date() and save it in my field on database.
I use this
$query2 = "SELECT * ,DATE_ADD(`date_joined`,INTERVAL 30 DAY) AS expire FROM `set` WHERE ID='$idno'";
$result2 = mysql_query($query2);
"expire" is the field i want to save as +30 days. date_joined is current date.
but it doesn't work. expire field is still current date no error message.
what should i do?
or is there another way to add 30 days to current date and save it as my "expire" field ?
Thanks