Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (2) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2014-06-22 (2 years ago) | Not enough user ratings | Total: 571 This week: 1 | All time: 5,126 This week: 1,047 |
Version | License | PHP version | Categories | |||
php-sql-builder 1.0 | GNU Lesser Genera... | 5 | PHP 5, Databases |
Description | Author | |||||||||||||
This class can build and execute MySQL queries from parameters. |
|
This is simple class that I use to get user friendly insert/update SQL. Instead of INSERT INTO (field, field, field, field) VALUES(value, value, value value); /* Example: $SQLbuilder = new SQLbuilder(); $SQLbuilder->setTableName('SQLbuilder'); $SQLbuilder->addField('creator_first_name', 'Goran'); $SQLbuilder->addField('creator_last_name', 'Jordanoski'); $SQLbuilder->addField('creator_email', 'berezitski@gmail.com'); $SQLbuilder->addField('creator_linkedin', 'http://www.linkedin.com/in/berezitski'); $SQLbuilder->addField('creator_occupation', 'outsourcing'); $SQLbuilder->addField('date_entered', 'NOW()', 'not_quoted'); $query = $SQLbuilder->getSQL(); |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.