Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] How to use MySQL alias join with CI's Active Record
#3

[eluser]tkaw220[/eluser]
Hi noctrum,

Is my code below correct?

Code:
$this->db->select('inventory_logs.log_no as l, l.transaction, l.bookseller_id, l.type, l.purchase_order, l.job_sheet, l.invoice, l.delivery_order, l.note, l.user, l.log_date, booksellers.name as b, b.id')
->join('booksellers', 'l.bookseller_id = b.id', 'left')
->where('inventory_logs.log_no', $log_no);

Thank you.


Messages In This Thread
[SOLVED] How to use MySQL alias join with CI's Active Record - by El Forum - 07-08-2011, 04:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB