امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I have
Brad, boy
Dave, boy
Kathrin, girl
Sabrina, girl
I want to show them in acp like prefixes with prefixe_groups.
Boys
Girls
Should i fetch all names and group them into arrays
1.
fetch data
=> foreach
if group == boy => to array boys
if group == girls=> to array girls
or
2.
fetch data grouped bymysql left_join with data from table goup?
But then i have a lot of not needed data in a row like
Brad, boy...
Read more
Brad, boy
Dave, boy
Kathrin, girl
Sabrina, girl
I want to show them in acp like prefixes with prefixe_groups.
Boys
- Brad
- Dave
Girls
- Kathrin
- Sabrina
Should i fetch all names and group them into arrays
1.
fetch data
=> foreach
if group == boy => to array boys
if group == girls=> to array girls
or
2.
fetch data grouped bymysql left_join with data from table goup?
But then i have a lot of not needed data in a row like
Brad, boy...
Read more
