So the array above would create 2 rows in a database. I have dealt with arrays before but this one is a little more complex to me. I guess some kind of loop will be needed to get the values and then pass them to an insert query. Any advice much appreciated.
Hi again
Thanks for the help, the code works great and outputs as you expected.
Just to clarify, $a is my array.
Not sure about $oldarr, I replaced this with $a and it works fine.
I just need to figure out the query now and it should be sorted.
no, $oldarr is your array. $a is the argument for extr function, you don't use it.
$values is last part of the query( see the thread from mysql forum).