3
Contributors
3
Replies
5
Views
7 Years
Discussion Span
Last Post by avinashzala
0

Do you mean how do to update an image file path in a database?
if you are using mysql it would be:

UPDATE [table name] SET [field name]='newimage.jpg' where [field name]='oldimage.jpg';

Are you trying to do this within a php script?
I hope this helps.

0

no i dont just want to replace single image.My task is if an user updates his records all the time he is not going to change image.Once he wishes to change the image should be replaced otherwise the image already present should exist over in database

0

no i dont just want to replace single image.My task is if an user updates his records all the time he is not going to change image.Once he wishes to change the image should be replaced otherwise the image already present should exist over in database

So for that you need to check that user has images selected or not.
If image is selected then upload image and update the database.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.