I assume you have some PHP that does an INSERT query to place the image in the BLOB therefore you just need to change the MySQL to issue an UPDATE query with the id of the image to replace.
You could also just change the INSERT to REPLACE providing that the image ID (this is the key you select on) is currently passed to the INSERT query.
|