title: How to retrieve images from database in php
body: <p>I have a database which has a table called 'propImages' and there are two columns.- 'pid' and 'location'.</p>
  
  <p>And i have data in the database where multiple images can contained by single pid.
  <a href="http://i.stack.imgur.com/2fSzz.png" rel="nofollow">image contains database data</a></p>
  
  <p>now i want to retrieve images from database according to given pid. there can be more than one image.
  All i know it there should be an iteration to retrieve images.</p>
  
  <p>I want to display images in HTML .</p>
  
  <p>can you please show me the way to do it in php?</p>
  
  <p>Thanks in advance guys</p>