Jump to content

[SOLVED] query that excludes current item?


samoht

Recommended Posts

Hello all,

 

I have a page that displays a product to add to cart. I want to display similar products in a list below the main product based on things like brand.

 

So I am creating a function to grab the items from my db. the Problem is that I will end up showing the currently displayed Product in my sql query. Is there a way to exclude the current Id from the return list?

 

thanks

 

Link to comment
https://forums.phpfreaks.com/topic/74927-solved-query-that-excludes-current-item/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.