Jump to content

Variables based on systime and sysdate


wayne

Recommended Posts

Hi

 

Wonder if anybody can nelp. I have php file which fires data into db which I want to restrict the firing of so to speak based on sysdate and time. Basically want to include it as an error as an else if with my other errors.

 

Lets say i have two variables called $time and $date which are manually updated each day to todays date and a set time for which i will be wanting to cut off the inserting of data to my db.

 

Firstly how do i identify the sysdate and systime ? and then how do i say that if sysdate is different from $date and systime is greater than $time than errror.

 

 

Thanks

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.