PHP Classes
elePHPant
Icontem

mysql_class: Easier insert, update methods with MySQL

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-03-14 (8 years ago) RSS 2.0 feedStarStarStarStar 69%Total: 1,620 This week: 1All time: 2,337 This week: 874Up
Version License Categories
bd 1.0BSD LicenseDatabases
Description Author

This class provides a similar way of inserting updating values like with pg_insert and pg_update.
Most recently a new version was added that suports 2 new functions:
- buildform($table,$form_action='',$method='post',$action='insert');
//builds the form from a sql table
//identifying the primary field so that it will be hidden
- listtable($table); // lists contents of a table
Now also implements a buildform($table) function and
a listtable($table) function.
For the build_form method a new class was added class html that handles the
input areas and text areas.

This can be a good method to assist the programmer, and good for small projects.

It can read the configuration from a file or it can be passed to class. This is demonstrated by another class: wison_class.php .

Picture of Fernando André
Name: Fernando André <contact>
Classes: 3 packages by
Country: Portugal Portugal
Age: 33
All time rank: 131517 in Portugal Portugal
Week rank: 488 Up8 in Portugal Portugal Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file mysql_class.php Class The source for mysql_class
Plain text file db.conf Aux. sample configuration file
Plain text file example.php Example An example of use. Of class wison that implements mysql class.
Accessible without login Plain text file mysql_class.readme Doc. English
Accessible without login Plain text file mysql_class_readme.pt.txt Doc. Portuguese, Português
Plain text file mysql_class_v1_1.php Class A improvement from the previous class Implements new features.
Plain text file wison_class.php Class Class that uses mysql_class.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,620
This week:1
All time:2,337
This week:874Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:69%StarStarStarStar
Rank:263