![]() |
photo edit can't
Hello.my Friend,Today i found some problem when edit my text and photo update
I have this dir upload list.php edit.php list.php PHP Code:
Code:
<?phpi edit the text if i don't choose the image,which is empty so,How can i solve the problem ? Thanks |
Don't let them change the photo image using that particular edit script.
If they need to change the photo, create a separate edit script for that. Use the script you're showing us for only changing textbox information such as name and email. |
Quote:
i call with photo id value like this value="<?php row['photo']; ?> and i don't get the photo value in edit.php |
Sorry, I don't follow you ...
There is one form to edit the photo. You show them the photo that is currently there, and then when they pick a new one from their PC and submit, the current photo is overwritten by the new one. |
Quote:
So, i just edit the name and don't edit photo ,i want to still the photo last existance photo don't pick the photo again , if update the photo is empty or my script is not work if i don't choose the photo Do you know to solve this? Thanks for your suggestion |
You can just change the photo filename name if you wish, the filename and not the actual photo.
I just don't know why you would want to do that. When a photo is uploaded, it puts the photo(s) into a directory somewhere and the photo filename is written into your database table? I assume that is what you're doing. So your column name "photo" is the filename of the photo itself. Is that how you have it set up? |
| All times are GMT +1. The time now is 06:39 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.