Welcome Guest, Not a member yet? Register   Sign In
An idea for foreach
#1

[eluser]Gabi3xz[/eluser]
I have form dropdown with the results of foreach.
Code:
foreach ($result_cat->result() as $row):
       echo form_dropdown($row->id, $row->cat_name);
endforeach;
Problem is that multiply and form_dropdown for each result.
how do I set up correctly?


Messages In This Thread
An idea for foreach - by El Forum - 06-06-2012, 08:19 AM
An idea for foreach - by El Forum - 06-06-2012, 08:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB