php Mysql get the number of updated rows

   If you use external variables in a function

Requires use of GLOBAL $conn

$result=mysqli_query($conn, $sqlstr );
    //Return the latest changed row number function
 $result=mysqli_affected_rows($conn);

Guess you like

Origin blog.csdn.net/qq1278169704/article/details/130471863