'how to insert into database with multiple array in php
hi guys can someone help me how to this. I have here the problems I can't solve it for example
data for manny
<input type="text" name="name[]" value="Manny" >
<input type="text" name="course[]" value="BSIT" >
<input type="text" name="level[]" value="2nd year" >
<input type="text" name="course[]" value="BSCS" >
<input type="text" name="level[]" value="3rd year" >
<input type="text" name="course[]" value="BSENG" >
<input type="text" name="level[]" value="4th year" >
data for Floyd
<input type="text" name="name[]" value="Floyd" >
<input type="text" name="course[]" value="ABM" >
<input type="text" name="level[]" value="Grade 11" >
<input type="text" name="course[]" value="STEM" >
<input type="text" name="level[]" value="Grade 12" >
Manny hold 3 classes while Floyd hold 2 classes. so how can I insert it into database I guess use an array is suit for this problem but I don't know how. please help me with this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
