title: Storing image URL's in database and retrieval process
body: <p>I am new to php/mysql. I am trying to store an image in my database via the URL(image location) at the moment my php code is storing the image in a folder in the directory called upload. This is insecure so i want to put the url in a database. My code is based of this <a href="http://dondedeportes.es/uploader-previewer/" rel="nofollow">IMAGEUPLOAD-WEBSITE</a> Here is a url example generated by my code:</p>
  
  <p><a href="http://www.example.com/imageupload/uploads/medium/uniqueimagename.jpg" rel="nofollow">http://www.example.com/imageupload/uploads/medium/uniqueimagename.jpg</a></p>
  
  <ol>
  <li>How would i construct a valid table that will store URL's? Should it be with Varchar?</li>
  <li>How can I retrieve this url from my database and display the image? php query of the filename in the database or original url?</li>
  </ol>