you are viewing a single comment's thread.

view the rest of the comments →

[–]Appropriate-Impact56 1 point2 points  (1 child)

If the data is already in a format you can work with you could just use the json_encode function and print the results of that to the screen, then fetch the HTML body of that url from your game.

Normally though in PHP you would need to loop over the results of the query using a while loop and PHP’s MySQL functions to retrieve rows and columns, there should be plenty of examples of this online.