Return to Snippet

Revision: 1230
at September 26, 2006 07:54 by gdonald


Updated Code
function sqlAffectedRows()
{
  if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) )
  {
    return @mysql_affected_rows();
  }
  elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) )
  {
    return @mysqli_affected_rows( $GLOBALS[ 'dbHandle' ] );
  }
}

Revision: 1229
at September 26, 2006 07:53 by gdonald


Initial Code
function sqlAffectedRows()
{
    if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) )
    {
	    return @mysql_affected_rows();
    }
    elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) )
    {
        return @mysqli_affected_rows( $GLOBALS[ 'dbHandle' ] );
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
php mysql/mysqli affected rows

Initial Tags
mysql

Initial Language
PHP