• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
query problem

#2
[eluser]pistolPete[/eluser]
Try this:

Code:
if($query_results->num_rows() >0)
{
            $row=$query_results->result_array();
            foreach ($row as $val)
            {
                          $charges[] = $val['property_id'];
            }        
            return $charges;
}

But why do you need to iterate over the results at all? Why don't you just use this:

Code:
return $query_results->result_array();


Messages In This Thread
query problem - by El Forum - 09-05-2009, 05:07 AM
query problem - by El Forum - 09-05-2009, 06:38 AM
query problem - by El Forum - 09-05-2009, 08:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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