RE: [PHP-DB] Can't get my head around this problem...

2001-04-24 Thread Tyrone Mills
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

RE: [PHP-DB] Can't get my head around this problem...

2001-04-24 Thread Alexander Fordyce
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

RE: [PHP-DB] Can't get my head around this problem...

2001-04-24 Thread Tyrone Mills
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 (!

Re: [PHP-DB] Can't get my head around this problem...

2001-04-24 Thread Szii
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...