Posted by Jonathan N. Little on 09/28/05 18:30
Neredbojias wrote:
> With neither quill nor qualm, Toby Inkster quothed:
>
>
>>Els wrote:
>>
>>
>>>now it appears I have to test them on all different days of the week as
>>>well? :-(
>>
>>You do if you use day-dependent functions in server-side scripts.
>>
>><?php
>> $day = (int)date('w');
>>
>> if ($day)
>> {
>> print "<p>The day of the week (in numerical "
>> print "form) is {$day}.</p>\n";
>> }
>>?>
>>
>>Spot the problem.
>
>
> Isn't Sunday "0"?
>
Bingo! Give that boy a star! :-D
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|