I need to update and NOT insert url if the image is not updated. The rest is working
What is working:
1. Image will update and insert http://hotlinewebsites.com/userfiles/6336/myfile.jpg into the database
a. With 6336 being the id from tbl_directorylistings or from the session variable depending on the page.
2. Image will upload into appropriate folder
3. Image file name will be appended if the file is duplicate
Issue: If an image existing and you simply update the page the existing image will no longer display properly as the url gets inserted again.