I'm trying to get results into my html page from a mysql db
using an external php file. I want to be able to echo the results together with the DIV tags so I can get the results including the DIVs into the html page. How do I add the DIV (below) in to the mysqli_fetch_array
results and echo the results?
php
while($line = mysqli_fetch_array($results)) {
$price = $line["cost"];
$item = $line["item"];
$img = $line["image"];
}
DIV
<div id="box-1" class="box">
<gt_descA>$item</gt_descA><gt_descC>$price</gt_descC>
<img id = $img/>
<span class="caption simple-caption">
<div class="minibuttonR"><a href="index.html" onClick=""></a></div>
<div class="minibuttonL"><a href="index.html" onClick=""></a></div>
<div style="clear:both;"></div>
</span>
</div>