Cheers Andy, between my last post and this one I came up with a rather
long-winded way of doing it...
$dayarray = getdate(mktime(0,0,0,$month,$date,$year));
switch ($dayarray["wday"]) {
case 0:
$day = "Sunday";
break;
case 1:
$day
Hmmm. I did:
$timestamp = mktime(0,0,0,$month,$date,$year);
$day = date("1", $timestamp);
and it returns 1, no matter what the contents of $month, $date and $year
are. Did I miss something?
-Original Message-
From: Andrew Rush [mailto:[EMAIL PROTECTED]]
Sent: 16
On Tue, 16 Jan 2001, Jon Haworth wrote:
Hmmm. I did:
$timestamp = mktime(0,0,0,$month,$date,$year);
$day = date("1", $timestamp);
and it returns 1, no matter what the contents of $month, $date and $year
are. Did I miss something?
Yes, you're missing the fact that it's a
Gah. I read that lower case l as a number 1. Time to get new glasses/switch
to 640x480 mode.
Thanks to everyone for your help.
Cheers
Jon
-Original Message-
From: Andrew Rush [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2001 16:03
To: Jon Haworth
Subject: Re: [PHP] Working out the
4 matches
Mail list logo