I have an array of $ product_array, and when I use print_r ($ product_array) ;. The array shows this as
Array
(
[0] => Array
(
[ID] => P00100
[NAME] => Edina
[PRICE] => $20.00
)
[1] => Array
(
[ID] => P00101
[NAME] => Richfield
[PRICE] => $21.00
)
[2] => Array
(
[ID] => P00102
[NAME] => Bloomington
[PRICE] => $22.00
)
)
I set up the database table in 4 columns, the first of which is mainid, and which is an automatic increment, next with the identifier, NAME, PRICE, as shown above. I would like to insert this $ product_array array into mysql. Can anyone help? I would really appreciate it! Tks.
source
share