There are no error but still its not showing

I’ve been working on a search engine that shows result from DATABASE on the same page but I dont know what went wrong that when I try to run the code the page is just blank :/ I’ve checked the code multiple times and I even used the php code checker online but still there is not error..

my code :

 <?php
   define('DB_SERVER', 'localhost');
   define('DB_USERNAME', 'root');
   define('DB_PASSWORD', 'hunzai112');
   define('DB_DATABASE', 'search');
   $con = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
?>
<?php
if(isset($_POST['search'])){
    if (isset($_POST['server'])) {
        $server = $_POST['server'];
        $get = mysqli_query($con,"SELECT * FROM servers WHERE name='$server' OR ip='$server' OR mode='$server'");

    ?>
<html>
    <head>
        <link target="_blank" rel="nofollow" href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet">
        <title>SA - Search Server</title>
        <link rel="stylesheet" type="text/css" target="_blank" rel="nofollow" href="css/main.css">
    </head>
    <body>
    <center><img src="https://static1.textcraft.net/data1/2/3/2337e6f3dd9146303dc9acf03635559ea532f099da39a3ee5e6b4b0d3255bfef95601890afd80709da39a3ee5e6b4b0d3255bfef95601890afd80709d4735e72ad57f1bace5e380c5c14c6a6.png" class="heading" ></center>
    <form method="POST" action="">
        <center><input type="text" name="server" />
        <input type="submit" name="search" value="Search" /></center>

    </form>
<div class="block"><h1 class="resulthead">Search Results</h1></div>
    </body>
</html>
<?php
    while ($row = $get->fetch_assoc()) {
            $name = $row['name'];
            $ip = $row['ip'];
            $version = $row['version'];
            $mode = $row['mode'];
            ?>
            <h1 class="name"><?php echo $name;?></h1>
            <h1 class="name">Server Ip : <?php echo $ip;?></h1>
            <h1 class="name">Server Version : <?php echo $version;?></h1>
            <h1 class="name">Server Mode : <?php echo $mode;?></h1>
            <hr />
            <?php

        }
    }
}
?>

Try to print the $server using echo statement, and you can know whether it is getting the value from the form.