ich hab da ein kleines problem
meine tabelle wenn ich sie komplett ausgebe sieht so aus (http://mitglied.lycos.de/lanmagstadt/statistik/stati…)
No | name | status | AIM/ICQ
01 |heinz | r | pas123123 / no
02 | egon | b | david / 5382036
03 | tomi | r | tomi7836 / no
Tabelle hats ein bischen verhauen
was ich jetzt will ist in der spalte *status* will ich wissen wie viel r es gibt in dem fall bräuchte ich als ausgabe *2* und
____________
das ist die php datei die die ganze liste ausgibt
____________
include(„config.inc.php“);
include(„datenbank.inc.php“);
$abfrage = „SELECT * FROM statistik
ORDER BY datum
ASC LIMIT 0, 300“;
echo „“;
$result = mysql_query($abfrage,$conn);
while ($row = mysql_fetch_array ($result))
{
$datum = $row[„datum“];
$aimicq = $row[„aimicq“];
$aimicq = nl2br($aimicq);
$no = $row[„no“];
$name = $row[„name“];
$status = $row[„status“];
$datum = date(„d.m.Y“,$datum);
echo
$no $name $status $aimicq
BCD;
}
echo „“;
mysql_free_result($result);
mysql_close($conn);
?>