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 Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-09-13 (0 years ago) RSS 2.0 feedNot enough user ratingsTotal: 84 All time: 10,045 This week: 54Up
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: 42
All time rank: 35232 in Bahrain Bahrain
Week rank: 37 Up1 in Bahrain Bahrain Up
Innovation award
Innovation award
Nominee: 1x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:84
This week:0
All time:10,045
This week:54Up