MySQL php row values in horizontal format
<p>Hello on my website I am fetching a list of data from a table.
For each item i am displaying it in a box.
The boxes are listed vertically.</p>

<p>I would like to view the boxes in a grid format with the boxes aligning horizontally side by side about 4 boxes across.</p>

<p>I am not sure if I need to do something with the MySQL commands in the while { } statement or if I can achieve this by using php.</p>

<p>The easiest way to expalin this is to show the page:</p>

<p><a href="http://www.testphoto.fr/category.php?id=3" rel="nofollow noreferrer">http://www.testphoto.fr/category.php?id=3</a></p>

<p>Here is some code:</p>

<pre><code>while ($rowGetReviews = mysqli_fetch_array($reviewDetails))
{
echo '
&lt;span&gt;
&lt;a href="productdetails.php?productid='.$rowGetReviews['ProductID'].'"&gt;
&lt;section class="row reviewholder"&gt;
&lt;img src="productimages/product_'.$rowGetReviews['ProductID'].'_image_1.jpg" width="260"  class="img-responsive"&gt;

&lt;h4&gt;&lt;a href="productdetails.php?productid='.$rowGetReviews['ProductID'].'"&gt;'.$rowGetReviews['ProductName'].'&lt;/a&gt;&lt;/h4&gt;

&lt;section class="averageholder"&gt;
&lt;span class="glyphicon glyphicon-star"&gt; &lt;/span&gt;';
echo $rowGetReviews['Average'];
echo'&lt;/section&gt;


&lt;/section&gt;
&lt;/a&gt;
&lt;span&gt;

';
}
</code></pre>

<p>CSS:</p>

<pre><code>.reviewholder{
    background:#e0e0e0;
    margin-top:10px;
    padding-top:10px;
    padding-bottom:10px;
padding-left:20px;
padding-right:10px;
    border-radius:5px;
        width:300px;
}
</code></pre>

<p>Many Thanks</p>

<p>Jean-Claude</p>