/***********Data object class************88//
Written by Viney
Any queries:
Mail id:vineesh_poduval@hotmail.com
/***************Thanks********************////
DATA OBJECT class
-------------------
Its an attempt to make the database operation simple ...
Using the object oriented concepts in PHP5.
Using the class
-------------------
After making connection and selection of database
Use these codes:
include("classDataObject.php"); ///Download and include the class...
$table=new dataObject("test_table"); ////Set your table name here...
queryString("fieldname==value"); ///set your condition here ....
$table->createObject(2); ///Set the maximum number of records here ...
while($table->getRecord())
{
$table->field_name1;
$table->field_name2;
$table->field_name3;
}
///////Put your pagination code here .
$table->getPages("cls","cls1");
|