• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confused on For Each & Displaying Correct Results

#2
[eluser]niki_mihaylov[/eluser]
Hmm im not 100% sure that i understood your idea, but if you want to get unique leads by marketer you can use
GROUP by in your query. Like so:

Code:
$query = $this->db->query(“SELECT * FROM lead_details WHERE lead_type = ” . $lead_type .” GROUP BY marketer_id ORDER BY lead_id DESC”);


Messages In This Thread
Confused on For Each & Displaying Correct Results - by El Forum - 06-14-2013, 11:03 AM
Confused on For Each & Displaying Correct Results - by El Forum - 06-28-2013, 12:59 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.