Login   Register  
PHP Classes
elePHPant
Icontem

objToSql: Generate SQL queries from objects or arrays

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 230 All time: 7,114 This week: 1,778Up
Version License PHP version Categories  
objtosql 1.0GNU General Public Lice...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
Age: 41
All time rank: 74196 in United States United States
Week rank: 760 Down84 in United States United States Up

  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:230All time:7,114
 This week:0This week:1,778Up
 User Comments (1)  
 
very handy
3 years ago (Jacek Lukasiewicz)
55%StarStarStar