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