Roaddoctor Posted April 22, 2014 Share Posted April 22, 2014 How can I add this categories_status = 1 into this $quotes = (defined('QUOTES_CATEGORY_NAME') ? " where cd.categories_name NOT LIKE '" . QUOTES_CATEGORY_NAME . "' " : ''); $sql = "SELECT c.categories_id as cID, c.date_added, c.last_modified as last_mod FROM " . TABLE_CATEGORIES . " c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id " . $quotes . " ORDER BY c.parent_id ASC, c.sort_order ASC, c.categories_id ASC"; I can't seem to make it work. -Dave Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 22, 2014 Share Posted April 22, 2014 Change on c.categories_id = cd.categories_id to on c.categories_id = cd.categories_id where c.categories_status=1 Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted April 22, 2014 Share Posted April 22, 2014 and change the 'where' in the first line to ' and ' KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
Roaddoctor Posted April 22, 2014 Author Share Posted April 22, 2014 Thank you to both of you... I had tried the change Jack suggested... it was the missing line 1 change to 'and' that goobered me up. Good catch! -Dave Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.