You can either dynamically create an tr element using jquery and append it to the tbody for each row of data or copy an existing tr, modify the data, and append it to the tbody.
I use ajax to get Wikipedia search results and create dynamic rows using jquery in this codepen: https://codepen.io/Gander7/pen/jYMMqg Scroll down to the $("#box").keypress
portion.
EDIT
since the server side language is PHP. there needs to be a server-side endpoint(URL / route / whatever you want to call it) that returns JSON. Check out how to do that with this question. You could use other formats but JSON is native to javascript and, IMO, is one of the common and the easiest to work with. My codepen example uses the existing Wikipedia URL as the endpoint. If you take that URL and put it into your browser address bar you will get a JSON result. you can test your endpoint the same way.
ie. Put this in your browser for example:
https://www.mediawiki.org/w/api.php?action=query&format=json&prop=info&list=search&titles=Main%20Page&inprop=url%7Cdisplaytitle%7Cpreload&srsearch=javascript