I have a page with multiple DIVs that all contain different content but all have same styling. I am using PHP on most of my page and would like to create maybe a function where it goes through a table in a database and displays all of them. Here is the DIV I have:
<div class="location-container">
<a href="http://www.google.com/"><img src="img/img.jpg" /></a>
<div class="info">
<a href="http://www.google.com/"><p class="title">Google</p></a>
<p class="location">Location</p>
<p class="location">Location</p>
<p class="phone">Phone</p>
</div>
</div>
Like I said, I have about 10 of these one after another. I would like to avoid this and maybe have PHP go through my database table and get all of the info from there.