I am trying for some time now to insert data from a JSON array into mysql database using php but what ever I try it is not working.
my array looks like so...
Array
(
[] => -4.0533
[bert] => 2
[earnie] => 0.25
[bigbird] => 0.25
[grouch] => 1.25
)
I am trying to insert this data into mysql database that has a table named "useramounts" the table contains 2 columns. (username,amount) so that each row contains a username and the associated amount
this is probably very simple for you guys but I have never attempted this before. I have tried to google a solution but to no avail. Can anyone help me?