![]() |
JSON to mysql with php
Ok I understand how to get normal JSON files into php variables with json_encode(); However, the json file I'm working with looks something like this:
Code:
{"daily":My question is how do I import this data into a table with id, timestamp, price, 180_average, one row per day? |
Perhaps I could take the array made by json_decode() and do a foreach() but it is still nested strangely. Possibly a double foreach()? Like:
Code:
foreach($out["daily"] as $myarray) {http://www.webmasterworld.com/forum88/3811.htm this is what gave me the foreach() idea. |
| All times are GMT +1. The time now is 03:39 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.