Welcome Guest, Not a member yet? Register   Sign In
Best way to create an array with query results!
#2

[eluser]daweb[/eluser]
Ehi,

I think this is the better solution, I hope:

Code:
foreach($result['result'] as $res => $row) :
# costruzione dinamica dell'array
  foreach($result['list_field'] as $key => $field) :
    $daweb_array['promo'][$res][$field] = $row->$field;
  endforeach;
endforeach;


Messages In This Thread
Best way to create an array with query results! - by El Forum - 11-13-2008, 12:21 PM
Best way to create an array with query results! - by El Forum - 11-13-2008, 12:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB