title: PHP Extract multiple images from MySQL database field
body: <p>I'm pulling in data from a csv file and inserting it into a MySQL database. The images are being inserted into a field called <code>picturerefs</code>, example shown below, and are stored on a seperate website.</p>
  
  <pre><code>http://images.somesite.co.uk/foldername/image28177_1b.jpg,
  http://images.somesite.co.uk/foldername/image28177_2b.jpg,
  http://images.somesite.co.uk/foldername/image28177_3b.jpg,
  http://images.somesite.co.uk/foldername/image28177_4b.jpg,
  http://images.somesite.co.uk/foldername/image28177_5b.jpg,
  http://images.somesite.co.uk/foldername/image28177_6b.jpg,
  http://images.somesite.co.uk/foldername/image28177_7b.jpg,
  http://images.somesite.co.uk/foldername/image28177_8b.jpg,
  http://images.somesite.co.uk/foldername/image28177_9b.jpg
  </code></pre>
  
  <p>How would I go about extracting these images in order to display them on the front-end of the website in a thumbnail gallery? Any help greatly appreciated, S.</p>