原帖由 咕咕 于 2005-11-28 12:46 发表
原作者:cnteacher
修改:muhan
4.0修改:咕咕
function query($sql, $type = '') {
$mtime = explode(' ', microtime());
$discuz_starttime = $mtime[1] + $mtime[0];
$func = $type == 'UNBUFFERED' && @function_exists('mysql_unbuffered_query') ?
'mysql_unbuffered_query' : 'mysql_query';
if(!($query = $func($sql)) && $type != 'SILENT') {
$this->halt('MySQL Query Error', $sql);
}
$this->querynum++;
$mtime = explode(' ', microtime());
$this->info .= "<hr>".substr(($mtime[1] + $mtime[0]-$discuz_starttime),0,7).": $sql [$type]";
return $query;
}
- function query($sql, $type = '') {
- $func = $type == 'UNBUFFERED' && @function_exists('mysql_unbuffered_query') ?
- 'mysql_unbuffered_query' : 'mysql_query';
- if(!($query = $func($sql)) && $type != 'SILENT') {
- $this->halt('MySQL Query Error', $sql);
- }
- $this->querynum++;
- return $query;
复制代码
我的也是4.0..怎內容不一樣..
這樣可以安裝嗎..因為我安裝出了點問題.. |