I have stored procedure in MySQL, something like the below:
create procedure SP_Test (input1 varchar(20)) begin update Table1 set Val1=\'Val\' where country=
Use ROW_COUNT():
SELECT ROW_COUNT();
Try the following code:
int mysql_affected_rows ([ resource $link_identifier = NULL ] )
one way, not very optimal is to simply do a select before you do the update.
select count(*) from table1 where country = 'country1'