How can I go about getting these results to insert into a database as one record for each key name? These 2 arrays will always have the same number of records and key names.
[size_chart_data] =Array (
[Width] =Array (
[Small] =18
[Medium] =20
[Large] =22
[X-Large] =24
[2X-Large] =26
[3X-Large] =28
[4X-Large] =30
[5X-Large] =32
)
[Height] =Array (
[Small] =28
[Medium] =29
[Large] =30
[X-Large] =31
[2X-Large] =32
[3X-Large] =33
[4X-Large] =34
[5X-Large] =35
)
)
I am using the following sql to insert into the database:
$chartData = db_insert('pa_size_chart_data')
->fields(array(
'width',
'height',
));
Thank you so much for your time. Please let me know if anything needs clarification. Aaron