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

NRPE remote host setup on amazon ec2

linux amazon-ec2 nagios nrpe

I have been trying to monitor a remote server using Nagios-Nrpe.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.