为什么流氓“?>”出现在我的PHP网站上?

我有流氓“>?出现在我的php / html网页上-好像打开的php代码括号被错误地关闭了。但是,在我的代码中,一切看起来都不错。任何想法的人,因为这让我发疯!

我已经对完整的括号,php边界等进行了两次和三次检查,但我根本看不到这一点,它似乎是在本课程的早期,因为它位于页面顶部-但一切似乎都是正确的

    <div style="margin-top:0px">
    <?php
        require_once('Connections/HCAFC_Admin_Conn.php');
        if (!function_exists("GetSQLValueString")) {
            function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = 
    "")
            {
            if (PHP_VERSION < 6) {
                $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
                }
    
            $theValue = function_exists("mysqli_real_escape_string") ? 
    mysqli_real_escape_string($theValue) : mysqli_escape_string($theValue);
    
            switch ($theType) {
                case "text":
                $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
                break;
                case "long":
                case "int":
                $theValue = ($theValue != "") ? intval($theValue) : "NULL";
                break;
                case "double":
                $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
                break;
                case "date":
                $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
                break;
                case "defined":
                $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
                break;
            }
            return $theValue;
            }
        }
        mysqli_select_db($HCAFC_Admin_Conn, $database_HCAFC_Admin_Conn);
    
    // POPULATE THE INITIAL SELECT_MATCH DROPDOWN BOX
        $query_Matchset = "SELECT date, comp, opponent, HAN FROM Matches";
        $Matchset = mysqli_query($HCAFC_Admin_Conn, $query_Matchset);
        if (!$Matchset) {
            printf("Match read Error: %s\n", mysqli_error($HCAFC_Admin_Conn));
      }
        $row_Matchset = mysqli_fetch_assoc($Matchset);
        $totalRows_Matchset = mysqli_num_rows($Matchset);
    
    // POPULATE THE INITIAL SELECT_PLAYER DROPDOWN BOX
        $query_Playerset = "SELECT player_id, forename, surname FROM Players";
        $Playerset = mysqli_query($HCAFC_Admin_Conn, $query_Playerset);
        if (!$Playerset) {
            printf("Player read Error: %s\n", mysqli_error($HCAFC_Admin_Conn));
      }
        $row_Playerset = mysqli_fetch_assoc($Playerset);
        $totalRows_Playerset = mysqli_num_rows($Playerset);
    
    // POPULATE THE INITIAL SELECT_MANAGER DROPDOWN BOX
        $query_Managerset = "SELECT id, name FROM Managers";
        $Managerset = mysqli_query($HCAFC_Admin_Conn, $query_Managerset);
        if (!$Managerset) {
            printf("Manager read Error: %s\n", mysqli_error($HCAFC_Admin_Conn));
      }
        $row_Managerset = mysqli_fetch_assoc($Managerset);
        $totalRows_Managerset = mysqli_num_rows($Managerset);
    
    // POPULATE THE INITIAL SELECT_TEAM DROPDOWN BOX
        $query_Teamset = "SELECT opponents FROM Teams";
        $Teamset = mysqli_query($HCAFC_Admin_Conn, $query_Teamset);
        if (!$Teamset) {
            printf("Team read Error: %s\n", mysqli_error($HCAFC_Admin_Conn));
      }
        $row_Teamset = mysqli_fetch_assoc($Teamset);
        $totalRows_Teamset = mysqli_num_rows($Teamset);
    
    // POPULATE THE INITIAL SELECT_SEASON DROPDOWN BOX
        $query_Seasonset = "SELECT season_key FROM Seasons";
        $Seasonset = mysqli_query($HCAFC_Admin_Conn, $query_Seasonset);
        if (!$Seasonset) {
            printf("Season read Error: %s\n", mysqli_error($HCAFC_Admin_Conn));
      }
        $row_Seasonset = mysqli_fetch_assoc($Seasonset);
        $totalRows_Seasonset = mysqli_num_rows($Seasonset);
    
    // POPULATE THE INITIAL SELECT_COMP DROPDOWN BOX
        $query_Compset = "SELECT league_name, comp_key FROM Comps";
        $Compset = mysqli_query($HCAFC_Admin_Conn, $query_Compset);
        if (!$Compset) {
            printf("Comp read Error: %s\n", mysqli_error($HCAFC_Admin_Conn));
      }
        $row_Compset = mysqli_fetch_assoc($Compset);
        $totalRows_Compset = mysqli_num_rows($Compset);
    
    // POPULATE THE INITIAL SELECT_FR DROPDOWN BOX
        $query_Frset = "SELECT date, comp, opponent, HAN FROM Friendlies";
        $Frset = mysqli_query($HCAFC_Admin_Conn, $query_Frset);
        if (!$Frset) {
            printf("Friendly read Error: %s\n", mysqli_error($HCAFC_Admin_Conn));
      }
        $row_Frset = mysqli_fetch_assoc($Frset);
        $totalRows_Frset = mysqli_num_rows($Frset);
    ?>
    </div>
    <!-- MATCH AMENDMENT FORM -->