I'll make this post short: I want to count the number of times my row appears in my table where the row is a specific value And another row could be 4 different values. I'll post my "guess" which doesn't work:
SELECT hero_selected, COUNT(hero_type) FROM heroes WHERE hero_type = 'agi' AND hero_selected = 'yt' OR hero_selected = 'yb' OR hero_selected = 'ym' OR hero_selected = 'yf
INFORMATION ABOUT THE TABLE
TABLE NAME
heroes
ROW TO COUNT
hero_type
SELECT "hero_type" WHERE
Value is 'agi'
ONLY SELECT IT WHERE "hero_selected" IS
Either yt, yb, ym or yf
If possible I'd also appreciate the full code including an echo of the count amount in php. Thanks A LOT in advance! :)