|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-09 19:11 UTC] mkools at euronet dot nl
[2002-07-17 18:48 UTC] phanto@php.net
[2002-07-17 20:18 UTC] mkools at euronet dot nl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
I'm currently in the process of writing a wrapper class to connect through ADO with an MS Access database. The whole class works, except for one thing: I can't get the amound of affected records of an insert, update or delete statement. What I have now is this: $Vrows = new VARIANT( 0, VT_I4|VT_BYREF); $this->QueryResult = @$this->Link->Execute( $inQuery, $Vrows); $this->AffectedRows = $Vrows->value; Explaination: QueryResult will be my RecordSet, Link is the ADO Connection object, inQuery is the query itself and AffectedRows will hold the amount of affected records by the query. But this seems to return the value 7779424 in all cases (even with select statements). The second things I've tried is: $this->QueryResult = @$this->Link->Execute( $inQuery, &$this->AffectedRows); But that doesn't do anything with the AffectedRows variable. It keeps holding the value of what I put in it previously (I default it to -1). Is this a bug, or am I doing things totally wrong? I found the latter syntax on some other places on the web, so either those aren't working either or I'm forgetting something...