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
Gustavo Moraes
3,627 PointsJSON and SQL
Hello, I din't understand the difference between AJAX Json and SQL server... Can I use the Json to get from SQL and get from that?
2 Answers
eck
43,038 PointsAJAX is the name for JavaScript techniques that allow you to download resources from a server and update a webpage without refreshing it.
JSON is a way of organizing data that is very easy to use with JavaScript.
Using a server-side language, like PHP, you can get data from a database like an SQL database and convert it into the JSON format.
Combining all these together, you can using AJAX to request data from a PHP file on you server, which can send data from your SQL database in the form of JSON that you can now interact with using JavaScript. All of this without having to refresh the page.
Gustavo Moraes
3,627 PointsThank you very much for the explain! Helped a lot!