Jump to content
Larry Ullman's Book Forums

How To Edit The Uploaded Image

Recommended Posts

I am new to PHP and MySQL. I have been learning this PHP 6 and MySQL 5 book. I am able to follow all of your examples. However, I am having difficulty with updating my uploaded image. I have no problem with uploading the image and storing it in database as I follow it exactly like in the book. But I am not sure how to replace it with a new image. If anyone would show me how to do it, I would really appreciate it. Thank you. 

Link to comment
Share on other sites

It'd help if you had a specific code example you were referring to. But, without any real context, the general idea is that you'd select the current info from the database, storing the primary key value somewhere. Then upload the new image and use an UPDATE query to update that database record for the new image.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...