![]() |
distinct problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: distinct problem (/showthread.php?tid=38846) |
distinct problem - El Forum - 02-21-2011 [eluser]Bigil Michael[/eluser] is it possible to list the distinct names from 3 columns of the same table????? can anyone help me???? urgent thanks in advance.... distinct problem - El Forum - 02-21-2011 [eluser]Rok Biderman[/eluser] Distinct normally doesn't work that way, but it' s easy to run 3 separate queries in the model function and then assign all 3 arrays to result. distinct problem - El Forum - 02-21-2011 [eluser]Bigil Michael[/eluser] can u help me these are the three columns Code: id tour_type1 tourtype2 tourtype3 thanks in advance. distinct problem - El Forum - 02-22-2011 [eluser]Rok Biderman[/eluser] Now, i'm sure that there are a more elegant ways to do this, but this one works as well. Code: function oneatatime($args) Hope it helps. |