Stats\n"; $dsn = "mysqli://$user:$passwd@$host/$db"; $conn =& DB::connect($dsn); if (DB::isError($conn)) { die ("Cannot connect: " . $conn->getMessage() . "\n"); } $conn->query("SET NAMES utf8"); echo "

Number of tagpairs seen in the current import

\n"; $result =& $conn->query("SELECT COUNT(*) FROM tagpairs WHERE nc_node+nc_way+nc_relation+nc_other <> 0;"); if (DB::isError($result) || $result->numRows() != 1) { die ("SELECT failed: " . $result->getMessage() . "\n"); } $row =& $result->fetchRow(); echo displayNum($row[0])."\n"; $result->free(); echo "

Number of tagpairs parsed in import

\n"; $result =& $conn->query("SELECT SUM(nc_node+nc_way+nc_relation+nc_other) FROM tagpairs"); if (DB::isError($result) || $result->numRows() != 1) { die ("SELECT failed: " . $result->getMessage() . "\n"); } $row =& $result->fetchRow(); echo displayNum($row[0])."\n"; $result->free(); echo "

Number of tagpairs first seen in the current import

\n"; $result =& $conn->query("SELECT COUNT(*) FROM tagpairs WHERE c_total=0"); if (DB::isError($result) || $result->numRows() != 1) { die ("SELECT failed: " . $result->getMessage() . "\n"); } $row =& $result->fetchRow(); echo displayNum($row[0])."\n"; $result->free(); echo "

\n"; echo "Back to index page\n"; $conn->disconnect(); ?>