Hi,
I guess that you already found out that ibase_affected_rows was introduced with PHP5 and isn't available with PHP4. I saw a patch somewhere (can't remember where) that adds that function to PHP4 but you would have to recompile PHP4. I don't know of another way to get the affected rows.
Thomas