MySQL Forums
Forum List  »  Newbie

AddDate
Posted by: Matthew Emerick-Law
Date: April 11, 2005 07:32AM

I am trying to add 4 weeks to a value in my tables using:

$sql_events2 = mysql_query("update users set hosting_date=(SELECT adddate('$hosting_date', 28 DAY)) where username='$username'") or die (mysql_error());

$hosting_date holds the value of the date in the field already that needs 28 days adding to it.

I have tried a few things but I either get errors about my syntax or nothing at all!

Options: ReplyQuote


Subject
Written By
Posted
AddDate
April 11, 2005 07:32AM
April 11, 2005 08:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.