PHP Classes

Simple Database Class: Execute MySQL queries from lists of parameters

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 43%Total: 591 All time: 5,257 This week: 455Up
Version License PHP version Categories
database_class 1.0GNU General Publi...4.2Databases
Description 

Author

This class can be used to execute MySQL database queries from lists of parameters defined programmatically .

It can execute SELECT, INSERT, UPDATE and DELETE SQL queries given the pertinent table and field names, field values, condition clauses, and other query specific parameters, etc..

Picture of Atul Hansaliya
  Performance   Level  
Name: Atul Hansaliya <contact>
Classes: 1 package by
Country: India India

Details

//////// Developed by Atul Hansaliya Website : http://www.beyondmart.com /////// This class is very simple : -------------------------------- Function and its arguments are as under // In following example you have to pass value as per argument // Read value of one field $str=$objb->GetValue("student","name","where id=10"); // will return string value // Get Maximum value of given field $str=$objb->GetMaxID("student","marks"); // will return string value // Select query $qry=$objb->selectquery("tablename","*","where id=2"); // will return records of mysql_query() function // Insert query $result=$objb->insertquery("student",$_POST); // will return true or false of query result // Update query $result=$objb->updatequery("student",$_POST); // will return true or false of query result

  Files folder image Files (5)  
File Role Description
Plain text file connection.php Aux. Database Connection File
Accessible without login Plain text file Example.php Example Example File
Accessible without login Plain text file Example2.php Example Basic example file
Plain text file myclass Class Main Class file
Plain text file Readme Doc. Help file

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:591
This week:0
All time:5,257
This week:455Up
 User Ratings  
 
 All time
Utility:55%StarStarStar
Consistency:50%StarStarStar
Documentation:60%StarStarStarStar
Examples:45%StarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3623