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: 287 All time: 7,461 This week: 347Up
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 is available for providing paid consulting. Contact andrea battellocchi .
Classes: 2 packages by
Country: Italy Italy
Age: 45
All time rank: 2974115 in Italy Italy
Week rank: 946 Up49 in Italy Italy Up
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  

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 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:287
This week:0
All time:7,461
This week:347Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:385
  
For more information send a message to info at phpclasses dot org.