Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

How can I save API data into mySQL? I'm using PhP, but happy to look elsewhere.

I am using PhP and have been able to read in the JSON data and display that on a web-page. I am then trying to loop through and INSERT each array into a row in the mySQL database. If I use plain text, it works - but calling values just fails to perform the insert.

Any ideas?

1 Answer

Could you add your code to this thread? I'd like to take a look at what you are doing.