douyiji3919 2015-02-03 08:06
浏览 21
已采纳

PHP - 如何在Adodb中检查成功查询的结果以进行更新?

How to check result of successful (or not) query for updating in Adodb?

My code :

$query = "Update tableA set name = 'myname' where id = 1";

$res = $dbConn->Execute($query);

I tried $res->FieldCount() and $res->RowCount() and $res->RecordCount() but not working.

  • 写回答

2条回答 默认 最新

  • douzhuican0041 2015-02-03 08:08
    关注

    if i dont remember wrongly, use

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

报告相同问题?