Welcome Guest, Not a member yet? Register   Sign In
Query Problem
#2

[eluser]jmadsen[/eluser]
you the problem with the protecting ` , i think?

Code:
(`i1+i2)`


I find ActiveRecord to be a bit tricky when trying to work with more complicated queries. I would recommend just using:


Code:
$sql = "SELECT *FROM `arkadaslar` join uyeler on uyeler.id=(arkadaslar.uid+arkadaslar.fid)-2";
$query = $this->db->query($sql);


Messages In This Thread
Query Problem - by El Forum - 06-27-2012, 02:08 AM
Query Problem - by El Forum - 06-27-2012, 02:30 AM
Query Problem - by El Forum - 06-27-2012, 03:19 AM
Query Problem - by El Forum - 06-27-2012, 03:43 AM
Query Problem - by El Forum - 06-27-2012, 04:09 AM
Query Problem - by El Forum - 06-27-2012, 07:21 AM
Query Problem - by El Forum - 06-27-2012, 08:28 AM
Query Problem - by El Forum - 06-27-2012, 09:10 AM
Query Problem - by El Forum - 06-27-2012, 09:28 AM
Query Problem - by El Forum - 06-27-2012, 09:48 AM
Query Problem - by El Forum - 06-27-2012, 10:34 AM
Query Problem - by El Forum - 06-27-2012, 10:47 AM
Query Problem - by El Forum - 06-27-2012, 10:55 AM
Query Problem - by El Forum - 06-27-2012, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB