satant Posted April 26, 2007 Share Posted April 26, 2007 i have lottery script but i have probleam in how to make start time nd end time this lottery is hour lottery thatman the end time = start time + (60*6) but i need to put start tim in sql for 1 time the this veriable increase by 1 hr evry time how i can code that Link to comment https://forums.phpfreaks.com/topic/48854-lottery-script/ Share on other sites More sharing options...
Caesar Posted April 26, 2007 Share Posted April 26, 2007 Hint: Use timestamps. Should be easy enough. You didn't provide any code so, I can't very well provide any examples using your existing code. Link to comment https://forums.phpfreaks.com/topic/48854-lottery-script/#findComment-239459 Share on other sites More sharing options...
kalivos Posted April 26, 2007 Share Posted April 26, 2007 at the end of the hour, when the drawing is done: //$end_time can be pulled from a database or your can use a built-in time function depending on how you store the time data $start_time = $end_time; $end_time = $start_time + (60*6); Link to comment https://forums.phpfreaks.com/topic/48854-lottery-script/#findComment-239461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.