I have this loop of a bootstrap grid and for some reason the heights of the results are outputting staggered with different heights? See image. The weird thing is that on my local server it's working fine. Maybe it's some conflict with my wordpress theme? I've tried multiple times to add a screenshot but it wont let me. If anyone sees any reason this code is doing this let me know.
<div class='container-fluid'>
<div class='row'>
<?php
$host = "---------";
$username = "-------";
$password = "-----";
$db_name = "------";
$conn = mysqli_connect($host, $username, $password, $db_name);
if ($conn != true)
{
echo "No Connected!";
}
$category = $_POST['category'];
$location = $_POST['location'];
$cash = $_POST['cash'];
$sql = "select * from franchise where category like '%$category%' and location like '%$location%' and investment <= $cash";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<div class='col-sm-4' style='padding: 15px;border-radius: 5px;'>"."<div style='border-style: solid; border-color: black; border-width: thin; padding: 15px; border-radius: 10px;'>".
"<center><img src='".$row['image']."' width='200' height='200'><br>"."<a href='".$row['page_link']."'>".$row['name']."</a><br><p>"
.$row['description']."</p><br><input style='width: 120px;
height: 45px;
background-color: orange;
border-style: solid;
border-color: red;
border-width: thin;
border-radius: 10px;
color: white;' type='submit' value= '=> Request Info' ></center>
</div>
</div>";
}
} else {
echo "0 results";
}
$conn->close();
?>
</div>
</div>