if(!$this->nResult=mysql_query($strSQL)) { $this->nErr=1; $this->sErr="Edit:SQL语句:".strSQL."
MySql错误:".mysql_error(); return; } $this->nCols=mysql_num_fields($this->nResult); unset($this->aFName); $this->aFName=array(); for($i=0;$i<$this->nCols;$i++) $this->aFName[$i]=strtolower(mysql_field_name($this->nResult,$i)); }
function SetValue($Index,$Value) //指定数据,跟在AddNew后执行; { if($this->NewEdit==0) { $this->nErr=1; $this->sErr="SetValue:请先执行AddNew()或者Edit()!"; return; } if(is_int($Index)) { if($Index<0$Index>$this->nCols) { $this->nErr=1; $this->sErr="SetValue:插入不存在的列值!";
上一篇:阅兵:Sql server 2005数据库列表合计
下一篇:如何自动发布MS SQL SERVER数据库
|