doubi9615 2016-04-14 12:05
浏览 35
已采纳

如何在php中表达DB2数据库的mysql_num_rows

So I have a query that works with a DB2 database just fine as a part of my code.

Let's say it's something really simple like:

$sql = "SELECT * FROM Mytable";

How can I express the mysql_num_rows PHP function to work with a DB2 database ad not MySQL?

$numrows = mysql_num_rows($query);
  • 写回答

2条回答 默认 最新

  • doufen1933 2016-04-14 12:10
    关注

    There is a corresponding db2_num_rows() function if you enable the db2 extension for php.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?