- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,417
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
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...
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...
نام موضوع : How to select data from mysql?