Kristianstad Posted April 18, 2000 Share Posted April 18, 2000 Hur gör man så det skrivs ut "Rätt dag" då datumet är t.ex. den 18 april. Om det är else allså något annat blir det "Fel dag"? Tack på förhand! Kristoffer Link to comment Share on other sites More sharing options...
nic Posted April 27, 2000 Share Posted April 27, 2000 Det är ju inte så lurigt: <? $dag=date("d"); $manad=date("m"); // echo "Dag: $dag manad: $manad\n"; if($dag=="18" && $manad=="04") echo "Rätt dag!"; else echo "Fel dag!"; ?> /nic @ http://www.nic-sys.se Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.