Advertisement

10.10.2008 at 05:53AM PDT, ID: 23803940 | Points: 500
[x]
Attachment Details

PHP process a JSON and write to mySQL

Asked by djclarkson in PHP and Databases

So the data provider gives me a JSON by the following export:

http://www.wardb.com/ExGuild.aspx?id=2295

I want to process it using PHP and enter all the data into my MySQL database. My site has a nice MySQL class which gives me the following usage for an example db write:

$db->query_write("REPLACE guildlist (class, demand) VALUES('Sorcerer', '$Sorcerer')");

So essentially, whats the most efficient way to get that JSON data into the DB?



Start Free Trial
[+][-]10.10.2008 at 08:45AM PDT, ID: 22687862

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.11.2008 at 01:00AM PDT, ID: 22693090

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628