第二栏没有显示[关闭]

I have a piece of code with which I pull data from my database and show that data on the page, divided in two columns. the first column shows, but the second doesn't show up... the code is as follows:

$stmt = $db->prepare('SELECT InfoID, Titel, Inhoud FROM Informatie WHERE Pagina = "Behandelingen";');
$stmt -> execute();
$count = $stmt->rowCount();
if ($count == 1) {
echo '<div class="col-sm-10"><div class="panel panel-default">';
while ($row = $stmt->fetch()) {
    $titel = $row['Titel'];
    $inhoud = $row['Inhoud'];
    echo "<div class='panel-heading'><b>$titel</b></div>";
    echo "<div class='panel-body'>$inhoud</div>";
}
} else if($count >= 2) {
echo '<div class="col-sm-5">';
while ($row = $stmt->fetch()) {
    $titel = $row['Titel'];
    $inhoud = $row['Inhoud'];
    $infoID = $row['InfoID'];
    if ($infoID % 2 != 0) {
    echo "<div class='panel panel-default'>";
    echo "<div class='panel-heading'><b>$titel</b></div>";
    echo "<div class='panel-body'>$inhoud</div></div>";
}}
echo "</div><div class='col-sm-5'>";
while ($row = $stmt->fetch()) {
    $titel = $row['Titel'];
    $inhoud = $row['Inhoud'];
    $infoID = $row['InfoID'];
    if ($infoID % 2 == 0) {
    echo "<div class='panel panel-default'>";
    echo "<div class='panel-heading'><b>$titel</b></div>";
    echo "<div class='panel-body'>$inhoud</div></div>";
}}
echo"</div>";
}

if anyone wants to see for himself what I mean you can see the page in question here

The first while ($row = $stmt->fetch()) will loop through all the results and there will be nothing to fetch in the second while statement

$stmt = $db->prepare('SELECT InfoID, Titel, Inhoud FROM Informatie WHERE Pagina = "Behandelingen";');
$stmt -> execute();
$count = $stmt->rowCount();
if ($count == 1) {
    echo '<div class="col-sm-10"><div class="panel panel-default">';
    while ($row = $stmt->fetch()) {
        $titel = $row['Titel'];
        $inhoud = $row['Inhoud'];
        echo "<div class='panel-heading'><b>$titel</b></div>";
        echo "<div class='panel-body'>$inhoud</div>";
    }
} 
else if($count >= 2) {
    while ($row = $stmt->fetch()) {
        echo '<div class="col-sm-5">';
        $titel = $row['Titel'];
        $inhoud = $row['Inhoud'];
        $infoID = $row['InfoID'];
        if ($infoID % 2 != 0) {
            echo "<div class='panel panel-default'>";
            echo "<div class='panel-heading'><b>$titel</b></div>";
            echo "<div class='panel-body'>$inhoud</div></div>";
        }
        echo"</div>";
    }
}

When I inspect the element of the page, it doesn't seem to show any of the code that you have echoing out for the second column, it shows the initial <div class='col-sm-5'></div>.

Also, check your quotes. I'm not sure if it will make a difference, but they are different in the second initial echo than they are in the first one for the first column.