Tässä pähkinä purtavaksi, mikä on vikana kun ei toimi aikojen kyselyt? Olen pähkäillyt jo pääni puhki enkä tiedä mikä mättää...
<form name="form1" method="post" action=""> <input name="testaa" type="submit" id="testaa" value="Submit"> </form> <?php $pp=date("d"); $kk=date("m"); $vv=date("y"); $hh=date("H"); $mm=date("i"); $ss=date("s"); $tanaan=mktime($hh,$mm,$ss,$kk,$pp,$vv)); // mktime(tt, mm, ss, kk, pp, vv) //*************************MALESIA************************************* $eka1=mktime(19,27,00,03,18,05); $toka1=mktime(19,28,00,03,18,05); //*************************BAHRAIN************************************* $eka2=mktime(09,20,00,04,03,05); $toka2=mktime(17,05,00,04,03,05); //*************************SAN MARINON************************************* $eka3=mktime(09,50,00,04,24,05); $toka3=mktime(17,35,00,04,24,05); //*************************ESPANJA************************************* $eka4=mktime(09,50,00,05,08,05); $toka4=mktime(17,35,00,05,08,05); //*************************MONACO************************************* $eka5=mktime(09,50,00,05,22,05); $toka5=mktime(17,35,00,05,22,05); //*************************EUROOPPA************************************* $eka6=mktime(09,50,00,05,29,05); $toka6=mktime(17,35,00,05,29,05); //*************************KANADA************************************* $eka7=mktime(14,50,00,06,12,05); $toka7=mktime(22,35,00,06,12,05); //*************************USA************************************* $eka8=mktime(15,50,00,06,19,05); $toka8=mktime(23,35,00,06,19,05); //*************************RANSKA************************************* $eka9=mktime(09,50,00,07,03,05); $toka9=mktime(17,35,00,07,03,05); //*************************UK************************************* $eka10=mktime(09,50,00,07,10,05); $toka10=mktime(17,35,00,07,10,05); //*************************SAKSA************************************* $eka11=mktime(09,50,00,07,24,05); $toka11=mktime(17,35,00,07,24,05); //*************************UNKARI************************************* $eka12=mktime(09,50,00,07,31,05); $toka12=mktime(17,35,00,07,31,05); //*************************TURKKI************************************* $eka13=mktime(09,50,00,08,21,05); $toka13=mktime(17,35,00,08,21,05); //*************************ITALIA************************************* $eka14=mktime(09,50,00,09,04,05); $toka14=mktime(17,35,00,09,04,05); //*************************BELGIA************************************* $eka15=mktime(09,50,00,09,11,05); $toka15=mktime(17,35,00,09,11,05); //*************************BRASILIA************************************* $eka16=mktime(14,50,00,09,25,05); $toka16=mktime(22,35,00,09,25,05); //*************************JAPANI************************************* $eka17=mktime(03,20,00,10,09,05); $toka17=mktime(11,05,00,10,09,05); //*************************KIINA************************************* $eka18=mktime(03,50,00,10,16,05); $toka18=mktime(11,35,00,10,16,05); if (isset($_POST['testaa'])) { if ($tanaan <= $eka1 OR $tanaan >= $toka1 AND $tanaan <= $eka2 OR $tanaan >= $toka2 AND $tanaan <= $eka3 OR $tanaan >= $toka3 AND $tanaan <= $eka4 OR $tanaan >= $toka4 AND $tanaan <= $eka5 OR $tanaan >= $toka5 AND $tanaan <= $eka6 OR $tanaan >= $toka6 AND $tanaan <= $eka7 OR $tanaan >= $toka7 AND $tanaan <= $eka8 OR $tanaan >= $toka8 AND $tanaan <= $eka9 OR $tanaan >= $toka9 AND $tanaan <= $eka10 OR $tanaan >= $toka10 AND $tanaan <= $eka11 OR $tanaan >= $toka11 AND $tanaan <= $eka12 OR $tanaan >= $toka12 AND $tanaan <= $eka13 OR $tanaan >= $toka13 AND $tanaan <= $eka14 OR $tanaan >= $toka14 AND $tanaan <= $eka15 OR $tanaan >= $toka15 AND $tanaan <= $eka16 OR $tanaan >= $toka16 AND $tanaan <= $eka17 OR $tanaan >= $toka17 AND $tanaan <= $eka18 OR $tanaan >= $toka18) { print"Vittu kun toimii hyvin!"; } else { print"Kisaan osallistumisen aika on mennyt jo umpeen! Parempaa onnea seuraavaan kisaan!! :)"; } } ?>
Aihe on jo aika vanha, joten et voi enää vastata siihen.