I am a newbie to MySQL.
I want to transfer data from MySQL table to javascript.
I want to create a multidimensional array in javascript using the table in MySQL.
This multidimensional array is to be used in other functions for calculation.
Is there any way to do it using PHP or JSON?
I am a newbie to MySQL. I want to transfer data from MySQL table
Share
Read records from your database table in PHP page and Create
JSONAnd send it to Javascript. JSON can hold any level of hierarchical data.A sample
JSONmay looks like thisJsonLint is a useful tool when working with
JSONdata. It can validate JSON.