what is my mistake?
$abfrage = "SELECT Antwort FROM EINTRAGEN";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
$myString = "$row->Antwort";
$substr = "Ja";
$count = substr_count($myString, $substr);
echo $count;
}
The content of my database "Antwort" is: Nein, Ja, Nein
My problem ist, that the content of $count "0 1 0" is - why not only "1"?