PHP Classes

objToSql: Generate SQL queries from objects or arrays

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 234 All time: 8,109 This week: 206Up
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
Age: 51
All time rank: 790107 in United States United States
Week rank: 181 Up20 in United States United States Up

  Files folder image Files (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:234
This week:0
All time:8,109
This week:206Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2214
 
very handy
13 years ago (Jacek Lukasiewicz)
55%StarStarStar