Thanks Alex!! I'll give that a go!
-Original Message-
From: Alexander Fordyce [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 8:07 PM
To: Tyrone Mills; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Can't get my head around this problem...
Looks to me like you'd be b
Looks to me like you'd be better off using an associative array, since
associating the count with the day of the week is the whole point. How
about...
while (list($count, $day) = db_fetch_row($result))
$lastweek[$day] = $count;
You'd have to tweak the logic of the rest of the script to use
taking a shot at it though, I appreciate it!
-Original Message-
From: Szii [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 6:27 PM
To: Tyrone Mills; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Can't get my head around this problem...
Perhaps...?
$x = 0;
while ($x < 7)
{
if (!
Perhaps...?
$x = 0;
while ($x < 7)
{
if (!isset($myArray[$x]))
{
$myArray[$x] =0;
}
}
-Szii
- Original Message -
From: "Tyrone Mills" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 3:58 PM
Subject: [PHP-DB] Can't get my head around this problem...