public function execute($str)
{
$this->initConnect(true);
if (!$this->_linkID) {
return false;
}
$this->queryStr = $str;
//释放前次的查询结果
if ($this->queryID) {
$this->free();
}
//N('db_write',1);
// 记录开始执行时间
//G('queryStartTime');
$result = mysql_query($str, $this->_linkID);
$this->debug();
if (false === $result) {
$this->error();
return false;
} else {
$this->numRows = mysql_affected_rows($this->_linkID);
$this->lastInsID = mysql_insert_id($this->_linkID);
return $this->numRows;
}
}