I am curious is it possible to create a loop in a separate PHP page that will create divs? Here is what I have been working on. I know that it will show the results for the first row in the data table. However, it does not show the following rows. I would assume since it does not show the following this won't work.
Separte PHP page
$query = "SELECT `ID`, `fullname`, `comment`, `date` FROM `reviews`";
$result = mysql_query($query);
if(!$result)
{
die('Error: ' .mysql_error());
}
$row_count = mysql_num_rows($result);
$row_users = mysql_fetch_array($result);
for($i=0; $i<$row_count; $i++)
{
$results = '<div class="col-lg-4">Name:'.($row_users['fullname']).'<br>'.($row_users['comment']).'<br>Date: '.($row_users['date']).'</div>';
}
Webpage
<div class="row">
<?php {echo $results;}?>
</div>