Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

See Related Item

Status
Not open for further replies.

berkshirea

Technical User
Mar 22, 2009
97
GB
Hi guys,

I want to have in a page a box that says:

other people who viewed this page also viewed these items
- item1
- item2
- item3

Can you give me any ideas how to do this? If you've got a working sample that even better. I've been looking around but still not so lucky.

Thanks guys!

 
Code:
<div style="border:solid 1px #000;">
<p>other people who viewed this page also viewed these items</p>
<ul>
 <li>item1</li>
 <li>item2</li>
 <li>item3</li>
</ul>
</div>

Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
Sorry ca8msm, I was not so specific in my question. I'm not referring to the html list tag. I was referring to the kind of feature when you are, for example, buying a book from Amazon. When you look at a book, it also gives you some suggestions that people who bought the book you are looking at also bought all/some of the suggested books. That sort of thing.
 
That can get complex for page views, it would be easier to do by sales. But basically you will have to store each hit to each page by user in the db and query/summarize the data on each view of an item.
 
The visits to the page are anonymous. Do you think Sessions is a good way to start?
 
Sessions in this case, no, You will have to track each hit to the site in the db and related hits of that session.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top