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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...