Welcome Guest, Not a member yet? Register   Sign In
Help with Binding
#4

(09-13-2017, 03:11 AM)ktmonty Wrote: Hope this work.
$ncCouponQuery = $this->db->select('*')
->from('coupon_master')
->group_by('coupon_master.ID')
->join('coupon_analytics','coupon_analytics.CouponID=coupon_master.ID')
->get()
->result();
$count= count($ncCouponQuery);

Thank very much. This is basically what I was looking for so I can use this as a template to work with more complex queries. The guide shows basic examples.

Again, thank you.
Reply


Messages In This Thread
Help with Binding - by Shamunda - 09-12-2017, 09:30 AM
RE: Help with Binding - by php_rocs - 09-12-2017, 08:04 PM
RE: Help with Binding - by ktmonty - 09-13-2017, 03:11 AM
RE: Help with Binding - by Shamunda - 09-13-2017, 08:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB