Beste,
Ik heb het volgende script (Heel simpel), maar ik wil er precies 1 maand bij. Kan dat?
Ik heb het volgende script (Heel simpel), maar ik wil er precies 1 maand bij. Kan dat?
date("d-m-Y") date("d-m-Y") 
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"1 month from today will be "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-m-Y"[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/strtotime"]strtotime[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"+1 months"[/COLOR][COLOR= #007700]));[/COLOR]
?> echo $row[date]; Allard schreef:Edit: heeft iemand nou nog een idee?Dank je allemaal, maar kan het ook met MySQL?echo $row[date];
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-m-Y"[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/strtotime"]strtotime[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"+1 months"[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/strtotime"]strtotime[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]date[/COLOR][COLOR= #007700]])));[/COLOR]
?>