$min_len) { $new_str[$i] = $string; $i++; } } $t_name = implode(" ", $new_str); unset($new_str); $t_name = preg_replace($pattern, $replace, $t_name); $t_nameL = strtolower($t_name); return $t_nameL; } // PCL Output function pcl_output($id) { if ($id == 0) return false; $query1 = tep_db_query("select c.parent_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = $id and cd.categories_id = $id"); $pcla = array(); while ($pc_values = tep_db_fetch_array($query1)) { $pc_header = $pc_values[categories_name]; $parent_id = $pc_values[parent_id]; $type = "c"; $query2 = tep_db_query("select c.categories_id, c.parent_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = $id and c.categories_id = cd.categories_id"); while ($q2v = tep_db_fetch_array($query2)) { $q2_id = $q2v[categories_id]; $q2_head = $q2v[categories_name]; array_push($pcla, "$q2_id$q2_head"); } } $i = 0; $cPath = tep_get_path($id); echo ""; foreach ($pcla as $key => $data) { $split = explode("", $data); $p_id = $split[0]; $p_head = $split[1]; $cPath = tep_get_path($p_id); if ($i == 2) { echo ""; $i = 0; } echo ""; $i++; } echo "
Shop our Online Catalog: ". $pc_header . "

"; } // Sub Topic Sister Linking function sub_topic_links($starting_topic_id) { $parent_query = "SELECT parent_id FROM topics WHERE topics_id='". $starting_topic_id ."'"; $parent_results = tep_db_query($parent_query); $parent_id = tep_db_fetch_array($parent_results); $parent_id = $parent_id['parent_id']; if ($parent_id == 0) { $parent_id = $starting_topic_id; } /* $parent_name_query = "SELECT topics_name FROM topics_description WHERE topics_id='". $parent_id ."'"; $parent_name_results = tep_db_query($parent_name_query); $parent_name = tep_db_fetch_array($parent_name_results); $parent_name = $parent_name['topics_name']; $parent_name = preg_replace('/ /', '', $parent_name); */ $i = 0; $topics_query = "SELECT t.topics_id, td.topics_name, t.parent_id FROM topics t, topics_description td WHERE (t.parent_id='". $parent_id ."' OR t.parent_id='". $starting_topic_id ."') AND t.topics_id = td.topics_id"; $topics_results = tep_db_query($topics_query); if (tep_db_num_rows($topics_results) > 0 ) { echo ""; echo ""; while ($subs = tep_db_fetch_array($topics_results)) { $topic_id = $subs['topics_id']; $topic_name = $subs['topics_name']; if ($subs['parent_id'] == 0) { $tPath = "tPath=". $subs['topics_id']; } else { $tPath = "tPath=". $subs['parent_id'] ."_". $subs['topics_id']; } if ($i == 0) { echo ""; } if ($topic_id != $starting_topic_id) { echo ""; $i++; } if ($i == 3) { echo ""; $i = 0; } } echo "
Related Topics:
  • ". $topic_name ."
  • "; } } // Sister Artile Linking function sister_article_linking($current_id) { $fetch_cat = tep_db_query("SELECT at.topics_id, t.parent_id, td.topics_name FROM articles_to_topics at, topics t, topics_description td WHERE at.articles_id = $current_id AND at.topics_id = t.topics_id AND td.topics_id = t.topics_id"); while ($result = tep_db_fetch_array($fetch_cat)) { $tID = $result['topics_id']; $pID = $result['parent_id']; $tName = $result['topics_name']; } if ($pID == 0) { $tPath = "tPath=". $tID; } else { $tPath = "tPath=". $pID ."_". $tID; } echo ""; sub_topic_links($tID); echo "

    "; echo "Back to main topic: $tName
    "; $link_builder_query = tep_db_query("SELECT ad.articles_id, ad.articles_name, at.topics_id, at.articles_id FROM articles_description ad, articles_to_topics at WHERE at.topics_id='$tID' AND at.articles_id = ad.articles_id;"); while ($link_builder = tep_db_fetch_array($link_builder_query)) { $a_id = $link_builder['articles_id']; $a_name = $link_builder['articles_name']; $aPath = "articles_id=". $a_id; if ($current_id == $a_id) { } else { echo "$a_name
    "; } } print ("
    "); } ?> Top Healthy Tips Habits for Long Life Healthy Living & Skin

    Nutritional

    Nutrition is a key element in maximizing your body's performance and natural healing capabilities. Proper nutrition can help speed healing, maximize performance and give you more energy.

    Track Your Back

    Understand your therapy progress using Pinnacle Health & Wellness's Surface EMG measurement tool.

    Top 5 Healthy Habits to Improve Your Health

    Happy Holidays and Seasons Greetings From Pinnacle Health and Wellness.

    Take your supplements over the holidays; there is never a season with more colds, stuffiness and flu symptoms then right now; take your supplements that help boost your immune system, zinc, calcium and vitamin C

    Eat as healthy as you can, of course there are always plenty of sweets around and eating in moderation is not so bad.  Sugar basically leaches vitamins from your body so that it can be broken down and processed; just keep that in mind when that second piece of pie is looking at you.

    Exercise is very important. Though we are super busy and stressed over the holidays, we still have time to exercise, even if it’s just a little bit.  You will feel so much better and energetic.

    Make sure to get quality sleep over the holidays, your body can very stressed and tired over the holidays so the only chance it has to recover is at night when you are sleeping.  Quality sleep will help your body’s immune system, digestive system and many more things.

    Have a healthy plan for 2012, think about what healthy habits you could start in January, set out goals of eating better, weight loss, exercise; who can you get with to help you meet these goals, or coach you through them?

    This article was published on Monday 25 June, 2012.