Re: Counting help

2004-06-16 Thread Rakhitha Karunarathne
$q->execute(); while (my @row=$q->fetchrow_array()){ $data{$row[2]}->{$row[1]} = $row[0]; } $q->finish(); LRMK - Original Message - From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 9:59 PM Subject:

RE: Counting help

2004-06-16 Thread Wiggins d Anconia
> [..] > > I will try and explain again what I am trying to do. > > I read in a file with a list of > > roomsThen im trying to list the room once and then count > > how many records match for the select statement and only > > print the building once with a count in front of it.. > > > >

RE: Counting help

2004-06-16 Thread Traeder, Philipp
[..] > I will try and explain again what I am trying to do. > I read in a file with a list of > roomsThen im trying to list the room once and then count > how many records match for the select statement and only > print the building once with a count in front of it.. > > db: > date build

Re: Counting help

2004-06-16 Thread rmck
D:211 11BLD:333 For 20 : 1BLD:1544 2BLD:1544 My goal was to have this output: For 30 : 10BLD:211 1BLD:333 For 20 : 2BLD:1544 Thanks.. -Original Message- From: Wiggins d Anconia <[EMAIL PROTECTED]> Sent: Jun 16, 2004 7:23 AM To: rmck <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subj

Re: Counting help

2004-06-16 Thread Wiggins d Anconia
> Im trying to list a record once and then count how many records. But I keep getting a list of all the records and it counts those?? I read in a file with a list of rooms and then look for each one that matches dept 22 and Im trying to show it once and then count how many for the building? > > >

Counting help

2004-06-16 Thread rmck
Im trying to list a record once and then count how many records. But I keep getting a list of all the records and it counts those?? I read in a file with a list of rooms and then look for each one that matches dept 22 and Im trying to show it once and then count how many for the building? #!/u