Hi April,
What you'll probably need to do is to add a cms field where you will store the record numb2er of the blog post that the comment is related to. You can set it as a hidden field inside your form. If you are going to be storing comments from more than 1 section, you'll need to store the table name (in this case "blog") in the CMS as well. That way, when you are retrieving blog comments, you can set the where clause to only retrieve comments with that number.
For example, if your field in "comments" was called "record_number" and you had already selected your blog record ($blog), your query would look like this:
list($commentsRecords, $commentsMetaData) = getRecords(array(
'tableName' => 'comments',
'allowSearch' => false,
'where' => "record_number = '".intval($blog['num'])."'",
));
Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/