11-02-2016, 04:12 AM
Ok, that helped.
I'm now working on a loop to create the breadcrumb and this....
do{
$query = $db->query("* FROM pages WHERE id = ?",array($parent_page_id));
$results = $query->results();
$parent_page_path = $results->page;
$parent_page_title = $results->page_title;
$breadcrumb .= ' » <i class="fa fa-home"></i> ' . $parent_page_title . '';
$new_parent_page_id = $results->parent_page_id;
} while ($new_parent_page_id != 0);
...isn't working. It's not getting all of the info. from the pages table. The $parent_page_id is set correctly.
Thoughts?
I'm now working on a loop to create the breadcrumb and this....
do{
$query = $db->query("* FROM pages WHERE id = ?",array($parent_page_id));
$results = $query->results();
$parent_page_path = $results->page;
$parent_page_title = $results->page_title;
$breadcrumb .= ' » <i class="fa fa-home"></i> ' . $parent_page_title . '';
$new_parent_page_id = $results->parent_page_id;
} while ($new_parent_page_id != 0);
...isn't working. It's not getting all of the info. from the pages table. The $parent_page_id is set correctly.
Thoughts?