PHP Classes
elePHPant
Icontem

objToSql: Generate SQL queries from objects or arrays

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2011-03-16 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 232 All time: 7,556 This week: 1,084Up
Version License PHP version Categories
objtosql 1.0GNU General Publi...5.0PHP 5, Databases
Description Author

This class can generate SQL queries from objects or arrays.

It can traverse the list of variables of the object or a given associative array and generate SQL INSERT or UPDATE queries to create or update records of a given database table.

The names of the table fields are taken from the object variables or array indexes. The field values are taken from the respective variable or array entry values.

Picture of Cale O
Name: Cale O <contact>
Classes: 3 packages by
Country: United States United States

  Files folder image Files  
File Role Description
Accessible without login Plain text file objtosql.class.php Class class file
Accessible without login Plain text file example.php Example example usage of class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:232
This week:0
All time:7,556
This week:1,084Up
User Comments (1)
very handy
5 years ago (Jacek Lukasiewicz)
55%StarStarStar