Welcome Guest, Not a member yet? Register   Sign In
$this->db->distinct() help needed
#1

[eluser]Computerzworld[/eluser]
Hello. I want to use $this->db->distinct on a particular column lets say trainId. How can I use it? I have passed trainId as parameter like this. $this->db->distinct('trainId') but it didn't returned me distinct result. Here is the exact code which I have written.
Code:
$this->db->distinct('trainId');
$this->db->where_in('stationId', $stationIds);
$query = $this->db->get("tbl_tt_schedule");
Please help me. Thanks in advance.


Messages In This Thread
$this->db->distinct() help needed - by El Forum - 05-12-2008, 03:15 AM
$this->db->distinct() help needed - by El Forum - 05-12-2008, 04:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB