I've this multidimensional array to insert into mysql database :
Array (
[0] => Array
( [0] => Mechanics of Solids [1] => 257 [2] => Civil Engineering
[3] => CEN [4] => Golam Kibria uddin [5] => 02-APR-2015 [6] =>
1:30am [7] => Md. Tushar Ahmed [8] => present )
[1] => Array
( [0] => Mechanics of Solids [1] => 257 [2] => Civil Engineering
[3] => CEN [4] => Golam Kibria uddin [5] => 02-APR-2015 [6] =>
1:30am [7] => Mrs. Monira Akter [8] => absent )
[2] => Array
( [0] => Mechanics of Solids [1] => 257 [2] => Civil Engineering
[3] => CEN [4] => Golam Kibria uddin [5] => 02-APR-2015 [6] =>
1:30am [7] => JOYNAB AKTER [8] => leave )
[3] => Array
( [0] => Mechanics of Solids [1] => 257 [2] => Civil Engineering
[3] => CEN [4] => Golam Kibria uddin [5] => 02-APR-2015 [6] =>
1:30am [7] => BEAUTY AKTER [8] => leave )
[4] => Array
( [0] => Mechanics of Solids [1] => 257 [2] => Civil Engineering
[3] => CEN [4] => Golam Kibria uddin [5] => 02-APR-2015 [6] =>
1:30am [7] => PURABI BARUA [8] => absent )
[5] => Array
( [0] => Mechanics of Solids [1] => 257 [2] => Civil Engineering
[3] => CEN [4] => Golam Kibria uddin [5] => 02-APR-2015 [6] =>
1:30am [7] => SETU BISWAS [8] => present )
)
I've a table named 'student_attendance' and columns are :
'att_id', //it's automatically incremented.
'subject_name' , 'subject_code', 'department_short_name',
'department_name', 'teacher_name', 'date', 'time', 'student_name',
'att_status'
Please help me to insert this array into this mysql table. And This should be done by foreach looping.