samoht Posted October 26, 2007 Share Posted October 26, 2007 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 More sharing options...
PHP_PhREEEk Posted October 26, 2007 Share Posted October 26, 2007 Use AND ! = 'current_prod_id' in your query PhREEEk Link to comment https://forums.phpfreaks.com/topic/74927-solved-query-that-excludes-current-item/#findComment-378877 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.