' . $OC_sortImg;
$nsort = 'Count';
} else {
$sortby = "num";
$nsort = 'Count
' . $OC_sortImg;
$csort = 'Country';
}
$q = "SELECT country, COUNT(*) AS num FROM " . OCC_TABLE_AUTHOR . ", " . OCC_TABLE_PAPER . " WHERE " . OCC_TABLE_AUTHOR . ".paperid=" . OCC_TABLE_PAPER . ".paperid AND " . OCC_TABLE_AUTHOR . ".position=" . OCC_TABLE_PAPER . ".contactid $accSQL GROUP BY country ORDER BY $sortby";
$r = ocsql_query($q) or err("Unable to get information");
if (mysql_num_rows($r) == 0) {
print 'No papers available
'; } else { print '
Note: Only the country of the contact author is used for reporting
' . $csort . ' | ' . $nsort . " |
---|---|
' . $l['country'] . ' | ' . $l['num'] . " |