Welcome Guest, Not a member yet? Register   Sign In
natural join with CI Active Record
#9

[eluser]maesk[/eluser]
The select clause, when selecting also the userid from podcasts, probably should have been:

Code:
$this->db->select('podcasts.userid, title, description, length(audio), realname, creationdate, podid');

instead of

Code:
$this->db->select('userid, title, description, length(audio), realname, creationdate, podid');

and yes, it should work in one statement, as long as nothing is ambiguous. I couldn't test it but I'm glad you could make it work.


Messages In This Thread
natural join with CI Active Record - by El Forum - 05-16-2008, 04:48 PM
natural join with CI Active Record - by El Forum - 05-16-2008, 04:59 PM
natural join with CI Active Record - by El Forum - 05-16-2008, 05:04 PM
natural join with CI Active Record - by El Forum - 05-16-2008, 05:24 PM
natural join with CI Active Record - by El Forum - 09-09-2008, 01:39 AM
natural join with CI Active Record - by El Forum - 09-09-2008, 02:34 AM
natural join with CI Active Record - by El Forum - 09-09-2008, 02:38 AM
natural join with CI Active Record - by El Forum - 09-11-2008, 06:17 AM
natural join with CI Active Record - by El Forum - 09-16-2008, 10:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB