PHP Classes
elePHPant
Icontem

Simple Database Class: Execute MySQL queries from lists of parameters

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-02-07 (8 years ago) RSS 2.0 feedStarStarStar 43%Total: 587 All time: 5,019 This week: 1,099Up
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
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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:587
This week:0
All time:5,019
This week:1,099Up
 User Ratings  
 
 All time
Utility:56%StarStarStar
Consistency:50%StarStarStar
Documentation:62%StarStarStarStar
Examples:43%StarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:2520