请大家帮我看下这个PHP函数是什么功能
functionqueryObjectArray($sql){$this->sqlcounter++;$this->printsql($sql);$time1=$this...
function queryObjectArray($sql) {
$this->sqlcounter++;
$this->printsql($sql);
$time1 = $this->microtime_float();
$result = $this->mysqli->query($sql);
$time2 = $this->microtime_float();
$this->dbtime += ($time2 - $time1);
if($result) {
if($result->num_rows) {
while($row = $result->fetch_object())
$result_array[] = $row;
$this->rowcounter += sizeof($result_array);
return $result_array; }
else
return FALSE;
} else {
$this->printerror($this->mysqli->error);
return FALSE;
}
} 展开
$this->sqlcounter++;
$this->printsql($sql);
$time1 = $this->microtime_float();
$result = $this->mysqli->query($sql);
$time2 = $this->microtime_float();
$this->dbtime += ($time2 - $time1);
if($result) {
if($result->num_rows) {
while($row = $result->fetch_object())
$result_array[] = $row;
$this->rowcounter += sizeof($result_array);
return $result_array; }
else
return FALSE;
} else {
$this->printerror($this->mysqli->error);
return FALSE;
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询