How to display recently compared products in the products page in magento?

I displayed both the "compare products" and "Recently Viewed Products" but unable to display "Recently Compared Products".

How can i do this..can anyone help please?


I have not try this code but hope it will help you.

$items = Mage::getResourceModel('catalog/product_compare_item_collection')
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
        else {

Need Your Help

(C++) Recursive call to file input function

c++ file recursion input

I have function used to input a file and store the contents in a string.

divide and conque binary search in C

c recursion binary-search divide-and-conquer

I'm trying to make a divide and conquer version of binary search, but one that divides the array to two subarrays and search similar to merging in merge sort, the reason I want to do that becuase I...