Skip to content
Advertisement

Send mysql data as json feed to another developer

I have the following code;

JavaScript

How can i send the result of the query as json feed to my colleague who we are working on the same project?

Advertisement

Answer

You need to create an array, where you can add status like fail/success and corresponding messages based on that.

A sample code is given below:-

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement