View Single Post
  #4 (permalink)  
Old March 18th, 2012, 08:43 AM
Master Yoda Master Yoda is offline
Authorized User
Points: 36, Level: 1
Points: 36, Level: 1 Points: 36, Level: 1 Points: 36, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, semi success. I will now need to review my view_forum.php (view.php in the book).

Something that bugged me when I exported the MySQL it had the following line:

Code:
KEY `parent_message_id` (`parent_message_id`),
and after rewriting it a few times as:

Code:
FOREIGN KEY (parent_message_id)
REFERENCES ufw_forum_message(message_id)
it kept linking back to parent_message_id instead of message_id. So I rewrite with the code the MySQL gave me, and managed to get it to link to the correct field. At least now its added to the database, and I can begin trouble shooting the view.php code!!
Reply With Quote