Bananian

Parsing JSON data and inserting to MySQL

0 38
Hey, so basically i want to parse a JSON file in PHP and insert the data into specific tables/columns. At the moment i have a working script but requires me to modify the JSON largely until it works. Which might be a pain because the JSON data I'm collecting can vary in size having more data rows. The JSON file is structured differently to most i have seen , maybe because its output data from sensor units. I want to insert the data and the serial number into the data table, and have an error_log table where i can store the serial number and error messages as strings.
Please help
Thanks

More Details
infographic videos

You have to log in before you can reply Login | Sign Up

Points Rules