jesica
07-13-2008, 05:40 PM
Hello dear fellows,
am trying to use some of the php's date function( date("Y/m/d"); ) in order to print according to current date - name of the day and month in terms of number - something that this day has to be done by the user .
Par example i tried something like this one :
<?
$writingdate=date("D");
if ($writingdate=="Mon" $writingmonth=="01")
echo "Today you have to buy that black label !";
elseif ($writingdate=="Thu" $writingmonth=="02")
echo "Today you have to buy that red label";
else
echo "Today you aint to buy for nothing";
?>
But no success can you help me so to be able to "extract" everyday the date-name and months number ?
thanks in advance :rolleyes:
am trying to use some of the php's date function( date("Y/m/d"); ) in order to print according to current date - name of the day and month in terms of number - something that this day has to be done by the user .
Par example i tried something like this one :
<?
$writingdate=date("D");
if ($writingdate=="Mon" $writingmonth=="01")
echo "Today you have to buy that black label !";
elseif ($writingdate=="Thu" $writingmonth=="02")
echo "Today you have to buy that red label";
else
echo "Today you aint to buy for nothing";
?>
But no success can you help me so to be able to "extract" everyday the date-name and months number ?
thanks in advance :rolleyes: