Hi romy,
SELECT
COUNT(*)
FROM tabelle1 AS t1
INNER JOIN tabelle2 AS t2
ON t1.reporter_id = t2.reporter_id
WHERE t2.active = '1' AND t1.reporter_id = {$ID}sollte 3 liefern.
idt active ein char-Feld? Ansonsten t2.active=1
ID ist eigentlich nur ein Dummy, ist ein varchar.
Kann leider nicht testen. Gehts ?
Seltsamerweise das selbe Problem das ich schon einmal hatte. Statt 1 bekomme ich 0, statt 4 bekomme ich 3 ausgegeben. 0 bleibt 0.
Versteh ich nicht.
Grüße,
small-step