//连接数据库
//link database
function DBLink($dbhost='localhost', $dbuser='root', $password='', $dbname='', $pconnect=0){
$this->LinkID[$this->Line] = ($pconnect == 1)? @mysql_pconnect($dbhost, $dbuser, $password,0,131072) : @mysql_connect($dbhost, $dbuser, $password,0,131072) or die("Connect to MySQL ($dbhost,$dbuser) failed");
//选择连接数据库
//choose to link database
@mysql_select_db($dbname, $this->LinkID[$this->Line]) or die('Cannot use database '.$dbname);
return $this->LinkID[$this->Line];
}
//link database
function DBLink($dbhost='localhost', $dbuser='root', $password='', $dbname='', $pconnect=0){
$this->LinkID[$this->Line] = ($pconnect == 1)? @mysql_pconnect($dbhost, $dbuser, $password,0,131072) : @mysql_connect($dbhost, $dbuser, $password,0,131072) or die("Connect to MySQL ($dbhost,$dbuser) failed");
//选择连接数据库
//choose to link database
@mysql_select_db($dbname, $this->LinkID[$this->Line]) or die('Cannot use database '.$dbname);
return $this->LinkID[$this->Line];
}
这个是执行的效果,还不错,性能还没有测试!放弃php4 和mysql4
$aaa=$ck->et_list("call news()");
print_r($aaa);
print_r($aaa);
作者:Else 's Blog
地址:http://www.aixq.com/post/1219/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
中查看更多“修改原来的类,达到可以执行存储过程”相关内容
中查看更多“修改原来的类,达到可以执行存储过程”相关内容
中查看更多“修改原来的类,达到可以执行存储过程”相关内容
中查看更多“修改原来的类,达到可以执行存储过程”相关内容
中查看更多“修改原来的类,达到可以执行存储过程”相关内容
中查看更多“修改原来的类,达到可以执行存储过程”相关内容
css div上的一些排法,
Three-pixel text jog 


2008/09/18 16:00 | by 
