Welcome Guest, Not a member yet? Register   Sign In
Problem with foreach in Model
#2

[eluser]cinewbie81[/eluser]
Maybe :
Code:
$output = '';
        foreach ($query->result() as $category)
        {
            $output .= '<option value="'.$category->id.'">'.$category->name.'</option>';
        }
        
        return $output


Messages In This Thread
Problem with foreach in Model - by El Forum - 01-21-2008, 09:59 PM
Problem with foreach in Model - by El Forum - 01-21-2008, 10:10 PM
Problem with foreach in Model - by El Forum - 01-21-2008, 10:13 PM
Problem with foreach in Model - by El Forum - 01-21-2008, 10:32 PM
Problem with foreach in Model - by El Forum - 01-21-2008, 11:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB