امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
So I have a column in my table, that is a blob of usergroup ids... ex:
I would like to search this table, for results in which the user's group's match this column.
Currently I am doing it was follows:
PHP:
Read more
["2","3","5","9"]I would like to search this table, for results in which the user's group's match this column.
Currently I am doing it was follows:
PHP:
کد:
$visitor = \XF::visitor();
$whereOr = [
[' Category.category_groups', 'LIKE', '%"'.$visitor->user_group_id.'"%'],
];
foreach ($visitor->secondary_group_ids AS $group)
{
$whereOr[] =...
