Re: getting amount of deleted rows from: $result=odbc_exec($conn, 'delete from....'); [message #169495 is a reply to message #169489] |
Wed, 15 September 2010 12:03 |
Captain Paralytic
Messages: 204 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 15 Sep, 10:21, jodleren <sonn...@hot.ee> wrote:
> As the header says:
>
> $result=odbc_exec($conn, 'delete from....');
> echo ".... rows deleted";
>
> I want to know how much I deleted.... probably very simple, but hard
> to find :)
>
> Sonnich
Oh it was just SOOOO hard to find.
I had top search google for
php odbc rows deleted
and lo and behold a link to
http://php.net/manual/en/function.odbc-num-rows.php
as the second site reference with the abstract:
This function calls SQLRowCount, which according to the ODBC
Specification returns "the number of rows affected by an UPDATE,
INSERT, or DELETE statement;
Wow that was so hard I had better go and lay down for a rest.
|
|
|