I'm designing a web page to show some commodity results (such Model, price, Comment) for every Commodity is a database and I call theme to show in each Commodity (it while be shown in a div) I wanna to set backgrounds for each div (it saved in database and every Commodity have one background-image) please tell me whats the true syntax for this div s for example I wrote this code:
<div class="commodities"> <style>.commodities{ background-image:<?php $Images[$i]?>} </style>
<?php
echo "Model:";
echo $Models[$i];
echo "<br><br>";
echo "Price: ";
echo $Prices[$i];
echo "<br><br>";
echo $Comments[$i];
?>
</div>
please help me to fix this part of code: { background-image:}