Wow. Now i got a problem. Want to kill the attachment when the pm is killed. Problem:
If someone sends a multiple message to more than one users.
While the first kills his pm, the attachment is killed, too.
Seems another query is needed:
count pms with attachmentid = x, if > 0, dont kill the file:
(Query after killing the first pm, while query before must be >1)
and so on.
Will do it in a minute ...
|