Jump to content


Photo

Child Post to a Parent Post


  • Please log in to reply
1 reply to this topic

#1 JabsBlog

JabsBlog
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 01 July 2006 - 09:23 PM

I have a question on forms and getting the information from 1 form to another on seperate pages.

I have a project that I am working on .. My index page pulls information from a Database. One of the fields is called blog_id. This is a random unique number.

In my Index page the Parent post has a Unique ID assigned to it in the Database. I want to create a link for a Child Post and be able to display the child post under the Parent Post. I am not quite sure how to go about doing this.

Any Help would be thankful

#2 mrwhale

mrwhale
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 01 July 2006 - 10:22 PM

the child post needs a field called something like "parent_id" this will store the parent posts id.

then when you are viewing the parent post you simply pull all the child posts from the database that have the parent_id

Easy as pie ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users