angelicaescobar Posted January 19, 2009 Share Posted January 19, 2009 HI! Sorry im new here, and i have this problem... I have this : $bookings[$i-1][date("d.m.Y",$timestampOfMonday+($x*86400))]["daterequest"]; where bookings is an array... The value that i got is a date, but i dont know how to manage it. Because i want to compare this value with the actual time. If the difference is bigger than one hour, i give a mesage telling something. The point is that i dont know what to do, because isf i make something like $dr=$bookings[$i-1][date("d.m.Y",$timestampOfMonday+($x*86400))]["daterequest"]; echo $dr will give me the actual time, not the one that i have stored on daterequest. HELP! HELP!!! please!! Thank you Link to comment https://forums.phpfreaks.com/topic/141444-how-to-get-the-value/ Share on other sites More sharing options...
namelessNN Posted January 19, 2009 Share Posted January 19, 2009 well if you are using php for time it's going to be tricky because php will use the server time. you'll need to use javascript. Link to comment https://forums.phpfreaks.com/topic/141444-how-to-get-the-value/#findComment-740715 Share on other sites More sharing options...
angelicaescobar Posted January 20, 2009 Author Share Posted January 20, 2009 UPS!! Houston...!!! OK OK!! No panic!!! So, if i need a javascript, that means that in the javascrip i will make the comparison of booths dates?? Link to comment https://forums.phpfreaks.com/topic/141444-how-to-get-the-value/#findComment-741049 Share on other sites More sharing options...
angelicaescobar Posted January 20, 2009 Author Share Posted January 20, 2009 well if you are using php for time it's going to be tricky because php will use the server time. you'll need to use javascript. Thanks.. Any sugestion .. where can i find a example?? Link to comment https://forums.phpfreaks.com/topic/141444-how-to-get-the-value/#findComment-741050 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.