How can I select rows from two or more tables?
I\'m setting default fields for a form, and I need values from two tables...
My current code reads:
$SqlInfo="select a.name, b.data fromtable1 a, table2 b where a.id=b.a_id"; $query = $this->db->query($SqlInfo);
try this way, you can add a third table named as c and add an 'and' command to the sql command.