This package can convert the records of a database table to JSON. It provides an example script that connects to a MySQL database server using the MySQLi extension. The script executes a SQL query to retrieve all rows of a database table into an array, and then it outputs the array as a JSON string that serves as the content of the current HTTP request. |