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 (5 months ago) RSS 2.0 feedNot enough user ratingsTotal: 82 This week: 2All time: 10,024 This week: 37Up
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
Age: 41
All time rank: 36122 in Bahrain Bahrain
Week rank: 29 Up1 in Bahrain Bahrain Up
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:82
This week:2
All time:10,024
This week:37Up