Ik wil gewoon op een pagina displayen hoeveel dagen het nog duurt voordat het maandag is, gewoon elke week weer, niet dat ik de datum elke week moet aanpassen.
Aarclay schreef:Deze geprobeerd voor een andere pagina, maar hij werkt niet, als ik date("H") en date("i") echo, komt er allebei 00 en 00 uit.[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"N"[/COLOR][COLOR= #007700])==[/COLOR][COLOR= #DD0000]"1"[/COLOR] [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"H"[/COLOR][COLOR= #007700])==[/COLOR][COLOR= #DD0000]"12"[/COLOR] [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"i"[/COLOR][COLOR= #007700])==[/COLOR][COLOR= #DD0000]"00"[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Het is vandaag maandag en het is 12 uur."[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Nope, het is niet het juiste tijdstip..."[/COLOR][COLOR= #007700]; }[/COLOR] ?>



