Jump to content

Archived

This topic is now archived and is closed to further replies.

JabsBlog

Child Post to a Parent Post

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 ;)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.