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

[eluser]darkhouse[/eluser]
Looks like you need to escape your quotes, or just use double quotes to wrap your statements. Try this.

Code:
$this->db->join("EMP a", "(b.INVCODE=a.INVCODE) and (a.FINSHORT='$finyear') and (a.EMPCODE='$user')", "left outer");


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