Welcome Guest, Not a member yet? Register   Sign In
Select by active record... help
#2

[eluser]sikko[/eluser]
Well, this is how I would do it:


Code:
$this->db->select('ur.id_url, ur.checktime, ur.result, ur.responsetime, ur.responselength, ur.responsespeed, uu.url');
$this->db->from('url_results ur, url_urls uu');
$this->db->where('ur.id_url', $urlId);
$this->db->where('uu.id_url', 'ur.id_url', false);

Please note the false in the last where clause. It's used for the field name not to be escaped.

Try it and let us know.


Messages In This Thread
Select by active record... help - by El Forum - 02-11-2011, 06:57 AM
Select by active record... help - by El Forum - 02-13-2011, 09:45 AM
Select by active record... help - by El Forum - 02-13-2011, 09:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB