Home » Php » Creating interactive data tables to extract data from a MySQLi database

Creating interactive data tables to extract data from a MySQLi database

Posted by: admin October 29, 2018 Leave a comment

Questions:

Not really a coding problem just a pointer in the right direction would be amazing (please be patient with me, i’m still new to coding and this may seem like a really obvious answer to some).

I know that I need to learn how to use JQuery and AJAX to display data, however nearly all tutorials I’ve seen online don’t interact with a MySQL database. Instead the tutor is interacting with a XML data sheet with all their data in it. Of course looking at JavaScript with fresh eyes has really confused me on what i need to focus to learn next. I know JQuery is used to present data and AJAX is used to interact with data. So do I need to convert database results, acquired in PHP, into XML documents to then be manipulated through AJAX and Jquery?

I want to know this because i’m trying to create a reactive drop down list for a PC-part picker. i.e. Selecting a CPU from a drop down list, then once the CPU is selected, when it comes to selecting a motherboard, a database query is used to find motherboards compatible with that CPU for example…. So far all of my data on CPU’s, Motherboards and GPU’s are all in my MySQL database hence why i’m asking this question.

Again any help to point me in the right direction would be fantastic and greatly appreciated.

Answers: