Sunday, December 13, 2009

Forum.php while loops



This while loop was used to process all data from the tbl_forum table, i had quite a bit of trouble processing the $threadid variable into a div tag because the $_POST function was not correctly processing.

to overcome this i created a hidden field with the id='threadid' and then on the focum.php and message_details.php created the variable $threadid = $_GET['threadid']; which seemed to pass through the $threadid variable into the header to determine which threadid would correspond to each reply.

code can be viewed here

No comments:

Post a Comment