• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
passing multiple values to a view

I am trying to return 2 values from my database and pass those to a view.

Im returning the values from the buy and sell tables
function mine(){


    if ($mylists->num_rows()>0){

        foreach ($mylists->result() as $a)


    if ($mylists2->num_rows>0)
        foreach ($mylists->result() as $b)
  return $data;

function leads(){




My view
<h2>Buy Leads</h2>

//display all the buy leads from the table

<h2>Sell leads/h2>

//display all the sell leads from the table

The problem that im having is how can i separate the $data['list'] values as the buy and sell leads?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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