suneel 0 Posted April 24, 2015 Report Share Posted April 24, 2015 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. Quote Link to post Share on other sites
Larry 429 Posted April 25, 2015 Report Share Posted April 25, 2015 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. Quote Link to post Share on other sites
Recommended Posts
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.