View Single Post
  #2 (permalink)  
Old 03-14-2007, 06:22 PM
speed speed is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 863
speed RepRank 1
Default

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.
__________________
US & UK Web Hosting with hourly backups | Hosting Affiliate Scheme | Web Directory 2 for 1 Offer
Reply With Quote