I have been using a php sql system to manage images on my website. I can easily upload new images, edit existing ones and delete them from mysql using php.
However, I was finding it extremely difficult to populate flash galleries driven from xml as I couldn’t transfer the BLOB data to xml correctly.
Consequently, I have setup an upload script that inserts the image into an “images” folder on my server, and adds id, image path, title and gallery in a mysql table. It is all working correctly, but now when it comes to editing and deleting the images I am stuck!
Would you recommend I stick with the first methodology (storing images as BLOBs) and try to figure out how to populate slideshows with this data, OR stick with the second approach and seek advice on how to edit and delete the images using php?
Thanks in advance for the advice, getting more and more stressed trying to get this sorted now! All I need is a simple image management tool that can also populate slideshows….!
JD
Your new approach is preferable in my opinion, and I personally know of no projects in my working environment that use blobs to store images (and we have some amazing web2print solutions).
I suggest you look for some tutorials about manipulating files in Google. It’s easy!
Below is an tiny example of how you could do it. This includes alot of guessing though – as I do not know your setup / code / security requirements. I suggest you just get started and post any further problems you might encounter.