//初始化 //参数:用户名、密码、数据库 function InitDB($user,$passWord,$db){ if (PHP_OS == "WINNT") $dllid=dl("php3_oci80.dll"); $this->LinkId = OCILogon($user,$password,$db); }
//断开 function Destroy(){ OCILogoff($this->LinkId); }
//------------------------- // Set 函数 //-------------------------
//设置显示条件 //如:where id='$id' order by id desc //要求是字串,符合SQL语法(本字串将加在SQL语句后)
function SetCondition($s){ $this->Condition=$s; }
//设置每组的显示个数 function SetNumGroup($pg){ $this->PGroup=$pg; } //设置首页,如无则为NULL function SetFirstPage($fn){ $this->TheFirstPage=$fn; } //设置起始记录,如无则取默认0 function SetStartRecord($org){ $this->StartRec=$org; }