PDA

View Full Version : Attachments and posts in database


MonkYZ
06-15-2011, 07:44 AM
Hello everyone!
Can you please tell me how do i know which attachment is attached to which post by accessing the database directly?
Thank you!

kh99
06-15-2011, 02:01 PM
It looks like in the attachment table, the contentid is the postid when the contenttype is 1. Look at packages/vbattach/attach.php, function fetch_postattach() for more info.