Hbelkin Posted April 7, 2005 Share Posted April 7, 2005 I last programmed years ago, and never in php, but seems fairly simple... however I have a (probably silly) question: In product_listing.php code, I'd like to test for products_status being = 0 and do an action if this is so. I have no problem with the code structure or the action, but I'm not certain how to test for the actual value... I tried: if ( $listing['products_status'] == 0 ) but this doesn't return the correct value. My assumption was the the $listing array somehow already held the retrieved database entries... but it seems as if this is not correct. The area in product_listing.php that I'd like to add this to is around the case 'PRODUCT_LIST_BUY_NOW': section (I have made other mods, so the line numbers are not useful) Someone care to enlighten me on what is probably an obvious answer here? Thanks! Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.