Jump to content
  • 0

some question in sql query need to have the right query


Kudo

Question


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   0
  • Joined:  08/18/12
  • Last Seen:  

i have some question guys!.. 

This is my query in some script
query_sql "UPDATE go_premium SET `expiration_date` = DATE_ADD(NOW(), INTERVAL 7 DAY) WHERE `account_id` = "+ getcharid(3) +"";

it works fine for me but my question is how can i change the "DATE_ADD(NOW(), INTERVAL 7 DAY" to  the value of the expiration date table + 7 days can someone teach me some tricks?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...