Welcome Guest, Not a member yet? Register   Sign In
Display recent user updates form two tables
#5

[eluser]ram reddy[/eluser]
its working for me

$query1 = $this->db->get('Example_Table1');
$join1 = $this->db->last_query();
$query2 = $this->db->get('Example_Table2');
$join2 = $this->db->last_query();
$union_query = $this->db->query($join1.' UNION '.$join2.' ORDER BY column1,column2);


Messages In This Thread
Display recent user updates form two tables - by El Forum - 05-04-2011, 01:53 PM
Display recent user updates form two tables - by El Forum - 05-04-2011, 02:16 PM
Display recent user updates form two tables - by El Forum - 05-04-2011, 06:01 PM
Display recent user updates form two tables - by El Forum - 05-04-2011, 06:06 PM
Display recent user updates form two tables - by El Forum - 05-04-2011, 07:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB