<?
$pre   = '';
include $pre . "common.php";
$title = 'Welcome to U.S. Globec';
// Since register_globals is on, the $_GET variables override anything
// I set in my scripts so I have this $imenu for initial menu then it
// can be reset by the $_GET['menu'] variable.
$imenu = 'main';
include HEAD;

$query  = "SELECT contrib_num,reference FROM papers ORDER BY contrib_num";
$result = mysql_query($query);
while( $row = mysql_fetch_assoc($result) ){
   $paper[$row['contrib_num']] = $row['reference'];
}
echo "<table>\n<tr>\n   <td>Contrib_num</td>\n   <td>reference</td>\n</tr>\n";
for($i=1;$i<=641;$i++){
   if( array_key_exists($i,$paper) ){
      echo "<tr>\n   <td>$i</td>\n   <td>$paper[$i]</td>\n</tr>\n";
   }
   else{
      echo "<tr>\n   <td>$i</td>\n   <td><b>NOT IN DATABASE</b></td>\n</tr>\n";
   }
}
echo "</table>";
?>

<?
include FOOT;
?>
