PHP Classes

Make SQL: Generate SQL queries from request values array

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 289 All time: 7,477 This week: 220Up
Version License PHP version Categories
make-sql 1.1GNU General Publi...5PHP 5, Databases


This class can generate SQL queries from request values array.

It takes as parameters the array of the current HTTP request values, the database name and the table name.

The class can generate SQL queries from the parameters to perform INSERT, UPDATE and DELETE queries.

The request parameter names define the table field names but it is possible to exclude certain field names that will not be included in the queries.

Innovation Award
PHP Programming Innovation award nominee
May 2016
Number 11

Prize: PHP Tools for Visual Studio Personal license
Many applications need to update database table records with values taken from request parameters.

This class can generate SQL INSERT, UPDATE and DELETE queries to a given table using escaped request parameter values in the queries. It can also exclude request parameters that should be ignored.

Manuel Lemos
Picture of andrea battellocchi
  Performance   Level  
Name: andrea battellocchi is available for providing paid consulting. Contact andrea battellocchi .
Classes: 2 packages by
Country: Italy Italy
Age: 47
All time rank: 2993113 in Italy Italy
Week rank: 503 Up21 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

This class make a wellformed SQL string for insert,update ad delete. Catch $_REQUEST ($_GET or $_POST) from form and generate sql string. It's simple but userfull.
  demo pageExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Files folder imageclass (1 file)
Plain text file examples.php Example example file
Plain text file Doc. readme file

  Files folder image Files  /  class  
File Role Description
  Plain text file makeSql.class.php Class Class file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,477
This week:220Up
 User Ratings  
 All time