Current time: 09-06-2010, 01:37 AM Hello There, Guest! (LoginRegister)


Posthash
02-09-2005, 07:42 AM
Post: #1
Posthash
What does the posthash do in the attachment table?

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user
02-09-2005, 07:54 AM
Post: #2
RE: Posthash
It is used when adding attachments. When you add an attachment to a post/thread (not when editing but when posting) there is no thread id or post id already generated. The posthash simply tells the script which attachments are to be assigned to your new post. If you take a look at the hidden form fields on the reply/new thread pages you will see ther is a posthash one. Once your post is submitted any attachments with the posthash the same as the one from the posting page will be updated to contain tid and pid information..

Chris Boulton
Twitter | Blog
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)