odbc_num_rows() will return the number of rows in an ODBC result. This function will return -1 on error.

解决方案 »

  1.   

    可能是PHP某些版本的bug
    你换其它的版本试一试
      

  2.   

    这个问题,怎么修改,那只有改odbc_num_rows()函数了啊
    把它的错误返回值改成你想要的
      

  3.   

    我已经把php的版本换为4.2.3phpinfo()显示为:PHP Version 4.2.3可是还有问题,那么换哪个版本呢?
      

  4.   

    换一种角度,我要实现的是:统计库中记录的条数。
    那么怎样用select count(*) from table,这条语句实现功能?
      

  5.   

    select count(*) as total from table然后取出记录,就是了。
      

  6.   

    采用数据表链接对象的getRowCount()来获取行数吧
      

  7.   

    int odbc_connect(string dsn, string user, string password, int [cursor_type]);cursor_type=SQL_CUR_USE_ODBC