PHP - Get affected rows in ADODB

后端 未结 2 661
囚心锁ツ
囚心锁ツ 2021-01-22 01:30

I using ADODB to create a connection to my database. I update the data in my database, there is no error. The problem is that I can\'t get the number of affected rows by A

2条回答
  •  广开言路
    2021-01-22 02:12

    About Affected_Rows(), I don't know why it isn't working. There is another very simple way to get the number of affected rows after execute query.

    $conn->Execute($sql,$affected_rows);
    
    echo $affected_rows;
    

    $affected_rows return from Execute function will have value equal to number of affected rows of that query.

提交回复
热议问题