To crAzY^ :
$datum=$_POST['datum'];
$hodina=$_POST['hodina'];
$minuta=$_POST['minuta'];
$microdate = EregI_Replace("/", "-", $datum);
$micro_nahrada = "".$microdate." ".$hodina.":".$minuta."";
$microtime = strtotime("$micro_nahrada");
a ten $microtime mi zapise do db a teda porovnavam napr. toto:
1236934800 a 1236938373
ked si spravim takyto script:
<?php
$cas=strtotime("13-3-2009 10:00");
$time = time();
if ($cas>$time){
echo strtotime("13-3-2009 10:00"), "je viac ako";
echo $time;
}
if ($cas<$time){
echo strtotime("13-3-2009 10:00"), "je menej ako";
echo $time;
}
?>
tak mi to porovna dobre ale z db nie preco?