ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 33,772
- Points
- 823
Reputation:
PHP:
Attachments with
Continue reading...
Code:
$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 Continue reading...