I have an array like this. This array value will be a dynamic value. So there will be array starting from author0 to authorN (where N represents any numbers). The order will be in the below sequential only.
Array
(
[author0] => 31
[percent0] => 10
[start0] => 2014-05-20
[end0] => 2014-05-21
[author1] => 70
[percent1] => 20
[start1] => 2014-05-21
[end1] => 2014-05-21
[author2] => 75
[percent2] => 20
[start2] => 2014-05-21
[end2] => 2014-05-21
)
I need to store the above array values in db as follows
table name: author_percentage
author percentage start end
31 10 2014-05-20 2014-05-21
70 20 2014-05-21 2014-05-21
75 20 2014-05-21 2014-05-21
So how can I achieve that?
Thanks, Kimz