PHP to determine the number of days to start trading to the current time and judge beyond the specified number of days

Source: Internet
Author: User

    
 
          
 
  
 
  
  
Withdrawal User Amount Status Start Trading hours Current trading days Payment date is currently exceeded
{$v. G_user} {$v. JB} Pending payment The paid transaction was successful {$v. Date}

Start to current number of days

Now time-start date {$v. date}= trading Days

This shows " exceeded " if the current number of days exceeds 2 days

How to judge {$v. Date} Start trading time to date (' y-m-d h:i:s ', Time ()), the number of days is the difference, that is, the number of days to start trading to now trade how many days, this {$v. Date} is the time to read the start of the database record;


Then there is another one that is if the specified number of days is exceeded by 2 days, in the otherShow "Time exceeded, trade stopped"
I haven't done it for a while, please give me a code reference.


Reply to discussion (solution)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: