Hi, I want to display the avearage row as images. Is it possible?
function reviews_average(){
$avgproduct_id = escape_string($_GET['id']);
$avgquery = "SELECT avg(rating) as average_rating FROM reviews WHERE product_id = $avgproduct_id";
$avgresults = query($avgquery);
confirm_query($avgquery);
while($row = fetch_array($avgresults)){
$avgratings = **--THIS IS THE ONE I WANT TO DISPLAY AS IMAGES--** "{$row['average_rating']}";
echo $avgratings;
}
}
This is the image
<img src='../public/images/star.png' height='20px' width='20px'/>