Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6042359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:46:54+00:00 2026-05-23T06:46:54+00:00

I have been using a php sql system to manage images on my website.

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:46:55+00:00Added an answer on May 23, 2026 at 6:46 am

    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.

    if ($_SERVER['REQUEST_METHOD'] == "POST") {
    
        // Get File info of file that has to be deleted.
        $iFileId = $_POST['fileToDelete'];
        $sSelectQuery = "SELECT filePath FROM files WHERE fileId = %d";
        $sSelectQuery = sprintf($sSelectQuery, (int)$iFileId);
        $rResult = $oDatabase->query($sSelectQuery);
        $aFileInfo = $oDatabase->fetch($rResult);
    
        // Remove file from disk.
        unlink($aFileInfo['pathtoFile']);
    
        // Remove file from database.
        $sDeleteQuery = "DELETE FROM files WHERE fileId = %d";
        $sDeleteQuery = sprintf($sSelectQuery, $iFileId);
        $oDatabase->query($sDeleteQuery);
    
        // Done
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using three classes. Two classes extends the third class db. But
I have been looking for help online on how to design my php classes
So I'm using PHP/MySQL and I have a tbl_profile table with the following fields:
This is the command I've been using for finding matches (queryString) in php files,
have been able to output images from BLOB, however I am now wanting to
I have been looking for a proper comment system for my blogging site. I
I have been looking around and would like to know what everyone uses to
I have a developed a application that allows users to draw simple images on
I just started using jQuery in the past few days. I love how it
I am reading a tutorial on how to insert and update data into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.