generated array textfield

how to generate array textfield based on database data retrieve. plss post answers with model,view and controller for me to understand.i wish someone will help me…thanks…

Explain your problem. Have you multiple fields in db’s table and you want many input text as your fields?

i have default values in my database table "milestone", and that table has 5 columns, "id,title,Milestone_name,Responsible,duration".

i want to generate a table in a form in view that contains, "Milestone Name, Responsilbe, Duration".

Duration column will be a textfield… how can i do that??/ plss help me. i want to make textfield an array in order to save it to database as a new data in database…

this is my code in the view to generate the data in the database…

<?php foreach($milestone_list as $milestone_list):

			echo '&lt;tr&gt;';


				echo '&lt;td&gt;';


					echo &#036;milestone_list-&gt;Id;


				echo '&lt;/td&gt;';


				


				echo '&lt;td&gt;';


					echo &#036;milestone_list-&gt;Milestone;


				echo '&lt;/td&gt;';





				echo '&lt;td&gt;';


					echo &#036;milestone_list-&gt;Responsibility;


				echo '&lt;/td&gt;';





				echo '&lt;td&gt;';


					echo '&lt;div class=&quot;row&quot;&gt;';


						echo &#036;form-&gt;labelEx(&#036;model,'Duration_Value');


						echo &#036;form-&gt;textField(&#036;model,'Duration_Value[]',array('size' =&gt; 3,              'id' =&gt; &#036;milestone_list -&gt; Id,'onchange' =&gt; 'js:Duration_update('.&#036;milestone_list -&gt; Id.');')). 'Day/s';


						echo &#036;form-&gt;error(&#036;model,'Duration_Value');


					echo '&lt;/div&gt;';


				echo '&lt;/td&gt;';








				echo '&lt;/tr&gt;';


		endforeach; ?&gt;