Designing a dynamic PHP page.
Posted: Fri Jun 02, 2006 5:04 pm
I am working on designing a web forum and I have a sever case of Coder's Block. I have accessed a MYSQL database where my information is stored and loaded titles, authors, and datestamps into a table. What I would like to do is to allow the click on the title of any post to view that post and its replies. Technically I wanted to do this by linking the title of the post to post.php and somehow passing the $postID variable from the forum.php page to post.php and then re-querying the database using the "SELECT * WHERE postID = $postID" line. I thought about using hidden forms in HTML and the onClick feature in javaScript, but I could not figure out how to then pass the $postID variable to the post.php page. Any help would be greatly appreciated. Thanks,
Patrick
Patrick