search in codeigniter |
You need to use a join to join the two tables.
You could do something like: PHP Code: $this->db->from('invoice'); Since a customer can have more than one invoice, I would suggest you check the query with something like: PHP Code: $query = $this->db->get(); There are some great help documents on all this: http://www.codeigniter.com/user_guide/da...eries.html http://www.codeigniter.com/user_guide/da...sults.html Best wishes, Paul. |
Messages In This Thread |
search in codeigniter - by egypure - 07-20-2016, 11:17 PM
RE: search in codeigniter - by PaulD - 07-21-2016, 03:19 AM
|