Some of the major problems i had whilst building my blog include:
- Deleting posts using reply_id's and forum_id's
- Search function
- Some posts are posted at the bottom of the forum.php page and not in: ... order by date_posted desc
- Database relationship problems with forum_id on both tbl_forum and tbl_replies tables
- While loops processing too much data on the forum post page(This was fixed when the variable $threadid was being passed through these files properly
- Email could not be done until uploaded to http://tyron.surfandlearn.net because of blocked ports through wamp
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
Admin page
Created the admin pages login is - user: admin pass: password2009
Admin's are able to delete posts and create posts using the admin username. They can also view user accounts and delete them.
Admin's are able to delete posts and create posts using the admin username. They can also view user accounts and delete them.
While loops and
Css problems
Had trouble with css – couldn’t get the $css variable to pass through all of the pages – finishing later on
Sessions September 2009
Worked out session_start() using the online php tutorial, created session_start() which is applied using the include("config.php"); tag on each php page
Subscribe to:
Posts (Atom)