Forum Moderators: open
for($i=1; $i<$numdependent; $i++)
{
echo"
<tr>
<td width=1% align=center><h2> $i</td>
<td width=18% align=center><input type=text name=dname[$i] id='name[$i]' ></td>
<td width=7% align=center><input type=text name=dage[$i] id='dage[$i]' size=2></td>
<td width=20% align=center><input type =text name=dschool[$i] id='dschool[$i]'></td>
<td width=20% align=center><input type =text name=dyrlevel[$i] id='dyrlevel[$i]'></td>
</tr>";
}
Then you either insert then in at a time or you use
INSERT INTO tablename( field1, field2 )
SELECT "a", "b"
UNION
SELECT "c", "d"
where of course tablename is your table, field1 and field2 are the field names, and a,b,c,d are the values from your arrays that you want to insert.