namelessxp
高级会员

*禁止发言*
UID 65789
精华
0
积分 969
帖子 1229
金钱 969 喜悦币
威望 0
人脉 0
阅读权限 50
注册 2005-8-12
状态 离线
|
[推荐阅读] 我是新手谁那有简单的流言板代码,让小弟学学,谢谢了
blakjak at NOSPAM dot com dot au (18-Jul-2002 05:00)
At the time of writing this note, the mssql_rows_affected function doesn't seem to be working. If you need to access the number of rows affected by the most recent mssql query, you can grab the @@ROWCOUNT variable. A quick example of how to do this:
function rows_affected(){
$result = mssql_query("SELECT @@ROWCOUNT");
list($affected) = mssql_fetch_row($result);
return $affected;
} 根据2002年用户注释里面解释的,可以用查询系统变量代替
PS:如果你用的PHP4,那么构造函数不会起作用,也就是说$this->link值将为空
function __construct($select,$link){
mssql_select_db($select);
$this->link=$link;
} =>
function databaseCortrol($select,$link){
mssql_select_db($select);
$this->link=$link;
} [ 本帖最后由 namelessxp 于 2006-11-29 12:34 PM 编辑 ]
|
|