Jasmina: Anzahl in Spalten zählen (MySQL)

Beitrag lesen

Hallo,

wer kann mir das folgende in PHP übersetzen????

Und ich (in Perl) so:

my $dbh = DBI->connect( "dbi:mysql:$DATABASE", $USER, $PW) ;
my $stm = $dbh->prepare( "select filiale, count(*) as Anzahl from betreuer group by filiale ") ;
$stm->execute;

while (my ($fil, $anz) = $stm->fetchrow_array())
{
     print "$fil    $anz\n";
}

Jasmina