hola, creo que este mensaje te puede ayudar:
Cita: I see that when try to use mysql_affected_rows() with "mysql_pconnect(...)" without link indetifier as param in "mysql_affected_rows()" the result is allways -1.
When use link identifier "mysql_affected_rows($this_sql_connection)" - everything is Fine. This is is on PHP Version 5.2.0
Hope that this was helpfull for somebody
http://www.php.net/manual/es/functio...rows.php#75415 basicamente lo que entiendo y fue lo que me llamo la antencion fue esto, prueba hacerlo asi:
Código PHP:
printf("Records deleted: %d\n", mysql_affected_rows($sql));
saludos y suerte