When I use pl/sql, for example: UPDATE table SET periodo = "201612" PHP: The system say: xx rows afected. This message is possible to get into a variable using PHP?
Yep ! $res = mysql_query("UPDATE table SET periodo = "201612"); $num = mysql_affected_rows($res); print "$num rows affected"; PHP: Please check php manual for details: http://php.net/manual/en/function.mysql-affected-rows.php stay well...
That being said, you should really stop using mysql_ The function is deprecated, full of security holes, and should have been discontinued a long time ago, in favor of mysqli_ or PDO.