Welcome Guest, Not a member yet? Register   Sign In
When Searching for a Second Product
#2

Your current query will produce

WHERE 'company_products.sys_id' = $product_1
AND 'company_products.sys_id' = $product_2

The second where should be an or_where so it will produce

WHERE 'company_products.sys_id' = $product_1
OR 'company_products.sys_id' = $product_2

PHP Code:
$this->db->where('company_products.sys_id'$product_1);
$this->db->or_where('company_products.sys_id'$product_2); 
Reply


Messages In This Thread
When Searching for a Second Product - by poldings - 06-15-2017, 04:18 AM
RE: When Searching for a Second Product - by Martin7483 - 06-15-2017, 05:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB