='".date("Y-m-d")."'"; $SQLQuery="select * from Evenimente"; //$SQLQuery="select * from Evenimente"; //wr($SQLQuery); $RS=mysql_query($SQLQuery); $cnt=mysql_num_rows($RS); //wr($cnt); if($cnt>0) { for($i=0;$i<$cnt;$i++) { if(mysql_result($RS,$i,"StartReg")<=date("Y-m-d") && mysql_result($RS,$i,"StopReg")>=date("Y-m-d") ) { wr("".mysql_result($RS,$i,"Eveniment")."  (Sesiune deschisa pentru inregistrari!...)"); }else{ wr("".mysql_result($RS,$i,"Eveniment").""); } } } EndPage(); ?>