Welcome Guest, Not a member yet? Register   Sign In
join with multiple conditions
#6

[eluser]bretticus[/eluser]
Funny, I am using CI 1.7.1 and when I use the following line for multiple conditions on my join:

Code:
$this->db->join('ProductPhotos', '(Products.ProductID = ProductPhotos.ProductID) AND (Photos.Type = \'small\')', 'left');

I get an error because it produces this:

Code:
LEFT JOIN `ProductPhotos` ON `Products`.`ProductID` = `ProductPhotos`.`ProductID)` AND (Photos.Type = 'small')

It is automatically whacking off the first parenthesis.

Anybody have a similar problem?


Messages In This Thread
join with multiple conditions - by El Forum - 02-24-2009, 11:43 PM
join with multiple conditions - by El Forum - 02-24-2009, 11:53 PM
join with multiple conditions - by El Forum - 02-25-2009, 12:25 AM
join with multiple conditions - by El Forum - 02-25-2009, 12:27 AM
join with multiple conditions - by El Forum - 02-25-2009, 12:38 AM
join with multiple conditions - by El Forum - 03-25-2009, 04:08 PM
join with multiple conditions - by El Forum - 03-25-2009, 04:21 PM
join with multiple conditions - by El Forum - 03-25-2009, 08:09 PM
join with multiple conditions - by El Forum - 03-25-2009, 08:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB