PDA

View Full Version : time and timeout's.



Moh
12-09-2008, 05:54 PM
Well for our polls, you can select how many days you wish the poll to end.

So 0 = never ends.

But I am having a problem, if the timeout isn't 0, it wont display the page.

So, this works if:
Checker = 0
Timeout = 0

But it dosnt work if:
Checker = 0
Timeout = 31

Oh, and $date is time();



if (mysql_num_rows ( $checker ) != 0 || ($timeout * 86400) < $date && $fetch["timeout"] != "0") {
// displays poll finished
}


Does anyone know why this isnt working?

Moh
13-09-2008, 04:15 PM
anyone?

Want to hide these adverts? Register an account for free!