Create dynamic JSON file in PHP Mysql

Php

Video is ready, Click Here to View ×


This video tutorial show you how to create dynamic json file from taking data from mysql database and convert that data into one array and convert that array to json file formate and thenafter create dynamic json file. Create dynamic JSON file in PHP Mysql.

17 thoughts on “Create dynamic JSON file in PHP Mysql

  1. Hi there, how do I get the json file to output in the following format:
    callback({
    "dps":

    [{"date":2018-06-01,"units":1000},{"date":2018-06-02,"units":50}]

    })

    I require the callback({ "dps": opening and closing }) in the file and then to unquote each value.

  2. Thank you for you video. I want my array to contain more than one row. When I print the array, I can see all the rows but when I return the array, it only shows the first value. Do you have any idea of the issue?

Leave a Reply

Your email address will not be published. Required fields are marked *