PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2016-05-10 (5 months ago) RSS 2.0 feedStarStarStarStar 70%Total: 268 All time: 7,255 This week: 1,087Up
Version License PHP version Categories
make-sql 1.1GNU General Publi...5PHP 5, Databases
Description Author

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 <contact>
Classes: 2 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Details
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  
  Files folder image Files  
File Role Description
Files folder imageclass (1 file)
Plain text file examples.php Example example file
Plain text file read.me 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  
 0%
Total:268
This week:0
All time:7,255
This week:1,087Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:308