Documentation
Function Reference
objects.php
obj::GetInfo
Usage:
string object->GetInfo(integer primary
index, string result return);
Description:
obj::GetInfo() retrieves
database records by the primary index either as an object or resource,
as specified by result return. result return is a quoted string
of one of these possible values:
"row"
Return the results as a resource.
"rs"
Return the results as an object.
The properties $table
and $tableIndex must be defined before using obj::GetInfo().
Example 4-3-1
$obj = new obj;
$obj->table = "table_name";
$obj->tableIndex = "table_primary_id";
$table_id = 1;
//Return query results as a resource.
$resource = $obj->GetInfo($table_id, "row");
//Return query results as an object.
$recordset = $obj->GetInfo($table_id, "rs");
obj::GetRS
Usage:
string object->GetRS(string condition,
string result return);
Description:
obj::GetRS() retrieves
database records with the specified condition serving as the Where
clause to a Select query and returns either an object or a resource, as
specified by result return. result return is a quoted string of
one of these possible values:
"row"
Return the results as a resource.
"rs"
Return the results as an object.
The property $table must
be defined before using obj::GetRS().
Example 4-3-2
$obj = new obj;
$obj->table = "table_name";
//Return query results as a resource.
$resource = $obj->GetRS("table_id=1", "row");
//Return query results as an object.
$recordset = $obj->GetInfo($table_id, "rs");