In php i get the variable $date_time in this format -- 11-01-2010 20:48:25 . This time is GMT time. I have a 2 hour flexibility and if it exceeds 2 hours then i have to reject it. I am set in EST, but i want to do the check based on GMT only so that there is no errors in the time difference. How can i set to GMT in my php code and how do i check for the 2 hours flexible time difference? like for this example it is acceptable for any time between 11-01-2010 18:48:25 and 11-01-2010 22:48:25. Also will it be an issue if $date_time is 11-01-2010 23:48:23?
Clarification I am doing a $date_time=$_GET['date_time'];. Then i need to check if this new $date_time if within 2 hours range of the current GMT time. if it is in the range, then i will proceed to execute that code, else i will show an error or do something else. I wanted to know how i am going to check this 2 hours range for this $date_time variable.
I'm trying to figure out a function that will check to make sure the user has not double entered a certain time frame for example I don't want them to be able to enter Mon 8:00 AM to 5:00 PM and Mon 9:00 AM to 1:00 PM but it is ok for them to enter something like Tue 8:00 AM to Noon and Tue 1:00 PM to 6:00 PM
Im making a site for a radio show. I want that when the radio show is on air, to show a little button to listen live. I know how to do the button and all that. My only problem is checking if the current time is the time of the show.
The show airs every sunday from 5 pm to 8 pm and also the first month of every month it plays an extra hour from 10 am to 11 am.
Users To Be Able To Select Both Check-box's At The Same Time.
Basically, I have 2 checkbox's which are printed out for each record within my table. On the next form, each checkbox is tested for being "checked" and the database is updated accordingly.
I have found a script which does exactly what i want, and i am now incorporating it into my original php script.
I am having problems assigning a name and value variable with an array to my checkbox's. Is this possible, or have i got the wrong idea?
I have developed a referral system where logged in members can send referrals to there family/friends to recommend them to signup.Everything works fine but yesterday decided i would limit the maximum referrals someone could send within a 24 hour period. I have limited this to 3 referrals maximum per day.I posted the bit of code that i seem to be having problems with below. The problem i am having is that no matter what it seems i get the error message saying i have reach the maximum referrals for today. I'm not sure what i am doing wrong in m
If my form has check boxes which have a value of "xyz = Yes" whe they are checked for example, and I write it to a DB with an INSERT INTO statement.
when I run a SELECT statement to review the form contents, all of the text fields populate, but the check boxes are unchecked. I double checked the DB for the output if the box is checked, and its there. Any ideas?