+ -
当前位置:首页 → 问答吧 → odbc_num_rows的问题

odbc_num_rows的问题

时间:2006-12-07

来源:互联网

我在用PHP连接access数据库的时候用的odbc对象:
$c . realpath($databasePath);
$this->linkID=odbc_connect($connection,$userName,$password,SQL_CUR_USE_ODBC);
$this->condition="select * from table";
[email=$resultID=@odbc_exec($this-]$resultID=@odbc_exec($this->linkID,$this->condition[/email]);
echo odbc_num_rows([email=$resultID=@odbc_exec($this-]$resultID[/email]);

发现所返回的值一直都是-1.

帮助里有
Note: Using odbc_num_rows() to determine the number of rows available after a SELECT will return -1 with many drivers.
这句说明,不知有那位大虾解决了这个问题.谢谢

作者: g0c0   发布时间: 2006-12-07

http://www.35865.com

作者: zjf   发布时间: 2009-06-20