PHP Classes

PHP Database table to JSON: Convert the records of a database table to JSON

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-09-13 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 78 This week: 1All time: 10,072 This week: 108Up
Version License PHP version Categories
ver 1.0The PHP License7HTTP, Databases, Text processing, PHP 7
Description 

Author

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.

Picture of Ahmed Abdulla
  Performance   Level  
Name: Ahmed Abdulla <contact>
Classes: 11 packages by
Country: Bahrain Bahrain
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file Index.php Example Main page

 Version Control Unique User Downloads Download Rankings  
 0%
Total:78
This week:1
All time:10,072
This week:108Up