امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
PHP:
Attachments with
کد:
$attachments = $this->sourceDb->fetchAll("
SELECT *
FROM attachments
WHERE attach_id > ? AND attach_id <= ?
AND is_orphan = 0
AND post_msg_id > 0
AND in_message = 0
ORDER BY attach_id
LIMIT {$limit}
", [$state->startAfter, $state->end]);
Attachments with
in_message = 1 are from private messages and the code ignores them 