php mysql/mysqli affected rows


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function sqlAffectedRows()
  2. {
  3. if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) )
  4. {
  5. }
  6. elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) )
  7. {
  8. return @mysqli_affected_rows( $GLOBALS[ 'dbHandle' ] );
  9. }
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.