Return to Snippet

Revision: 1220
at September 26, 2006 07:35 by gdonald


Updated Code
function sqlNumRows( $query )
{
  if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) )
  {
    return mysql_num_rows( $query );
  }
  elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) )
  {
    return mysqli_num_rows( $query );
  }
}

Revision: 1219
at September 26, 2006 07:34 by gdonald


Initial Code
function sqlNumRows( $query )
{
    if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) )
    {
	    return mysql_num_rows( $query );
    }
    elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) )
    {
        return mysqli_num_rows( $query );
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
php mysql/mysqli num rows

Initial Tags
mysql

Initial Language
PHP