This script errors and I can't find where, I know it's in the $homeRandom section yet I can't seem to work out what it is.
Is there a good way of printing large amounts of HTML in PHP?
$sqla = "SELECT * FROM Products";
$resulta = $conn->query($sqla);
if ($resulta->num_rows > 0) {
$homePage = '';
while($rowa = $resulta->fetch_assoc()) {
$nav = '<li><a href="'.$rowa['UrlPage'].'">'.$rowa['Name'].'</a></li>';
$homeRandom = '
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="./content/images/homepage/'.$rowa['ImageName'].'.jpg" alt="">
<div class="caption">
<h4 class="pull-right">'.$rowa['Price'].'</h4>
<h4><a href="'.$rowa['UrlPage'].'">'.$rowa['Name'].'</a>
</h4>
<p>'.$rowa['Description'].'</p>
</div>
</div>
</div>'
$homePage = $homePage . $homeRandom;
}