Kick Spy!, Kick Zeitgeist and Kick Widgets
blog.wekeroad.com — The Code I wrote about this before, but the best way to approach a difficult query is to cut it up into pieces. It really helps in this case, since what we’re doing is statistical and therefore may seem simple, but isn’t really. So let’s break it out: * We need to know all the Orders that our Product was part of * We need all of the Products that were part of those Orders, omitting the one we just bought * We need to roll these up by the SUM of the quantity of the products bought, and order them in descending order * We need to take the top 5 of this SUM, and query the Products table for the related Products
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Sponsored Link: www.carlist.ie
Ads via The Lounge