\n"; return; } $dbq = new_Query($null, $link, 0); // Prepare the query $qry = "SELECT * FROM " . $tabname . " ORDER BY Ra"; Query_prepare($dbq, $qry); // Execute the query Query_execute($dbq, 1); // If OK then display the query result if (! ifd_got_error() ) { echo "

Messier catalogue browser


\n"; $nrows = RecordSet_nRows($dbq); // number of rows if ( !strcmp($tabname,$def_tabname) ) $new_tabname = "Messier_view"; else $new_tabname = $def_tabname; echo "Show the '$new_tabname' table"; echo "
Number of returned rows from $tabname at " . gmdate("Y-m-d H:i:s") . ": " . $nrows . "\n"; if ($nrows > 0) mcs_clirows2Html($dbq); } // Reset error stack and delete objects ifd_reset_error(); del_Query($dbq); del_DBConn($link); echo "
\n"; ?>