Skip to main content
<?php
if ($result->num_rows > 0) {
?>
<table class="table table-hover table-striped table-condensed">
    <thead>
      <tr>
        <th>ID</th>
        <th>Country</th>
        <th>Price</th>
        <th>Games</th>
        <th>Plus</th>
        <th>Buy Link</th>
      </tr>
    </thead>
    <tbody>
    <?php
        while($row = $result->fetch_assoc()){ ?>
        <tr>
            <td><?php echo $row['id']; ?></td>
            <td><?php echo $row['country']; ?></td>
            <td><?php echo $row['price']; ?></td>
            <td><?php echo $row['games']; ?></td>
            <td><?php echo $row['plus']; ?></td>
            <td><?php echo $row['buylink']; ?></td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php
}else {
 // if there is no result... Code something here.
}
?>
<?php
if ($result->num_rows > 0) {
?>
<table class="table table-hover table-striped table-condensed">
    <thead>
      <tr>
        <th>ID</th>
        <th>Country</th>
        <th>Price</th>
        <th>Games</th>
        <th>Plus</th>
        <th>Buy Link</th>
      </tr>
    </thead>
    <tbody>
    <?php
        while($row = $result->fetch_assoc()){ ?>
        <tr>
            <td><?php echo $row['id']; ?></td>
            <td><?php echo $row['country']; ?></td>
            <td><?php echo $row['price']; ?></td>
            <td><?php echo $row['games']; ?></td>
            <td><?php echo $row['plus']; ?></td>
            <td><?php echo $row['buylink']; ?></td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php
}else {
 // if there is no result... Code something here.
}
?>
<?php
if ($result->num_rows > 0) {
?>
<table class="table table-hover table-striped table-condensed">
  <thead>
    <tr>
      <th>ID</th>
      <th>Country</th>
      <th>Price</th>
      <th>Games</th>
      <th>Plus</th>
      <th>Buy Link</th>
    </tr>
  </thead>
  <tbody>
  <?php while($row = $result->fetch_assoc()){ ?>
    <tr>
      <td><?php echo $row['id']; ?></td>
      <td><?php echo $row['country']; ?></td>
      <td><?php echo $row['price']; ?></td>
      <td><?php echo $row['games']; ?></td>
      <td><?php echo $row['plus']; ?></td>
      <td><?php echo $row['buylink']; ?></td>
    </tr>
  <?php }?>
  </tbody>
</table>
<?php
}else {
 // if there is no result... Code something here.
}
?>
Source Link

<?php
if ($result->num_rows > 0) {
?>
<table class="table table-hover table-striped table-condensed">
    <thead>
      <tr>
        <th>ID</th>
        <th>Country</th>
        <th>Price</th>
        <th>Games</th>
        <th>Plus</th>
        <th>Buy Link</th>
      </tr>
    </thead>
    <tbody>
    <?php
        while($row = $result->fetch_assoc()){ ?>
        <tr>
            <td><?php echo $row['id']; ?></td>
            <td><?php echo $row['country']; ?></td>
            <td><?php echo $row['price']; ?></td>
            <td><?php echo $row['games']; ?></td>
            <td><?php echo $row['plus']; ?></td>
            <td><?php echo $row['buylink']; ?></td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php
}else {
 // if there is no result... Code something here.
}
?>