helppy Posted December 7, 2006 Share Posted December 7, 2006 I have succeed in upload an image - myimage.jpg (the location i get the image from is from the desktop) to a location I want to save it. Now myimage.jpg is being saved in that location.However, I need to rename myimage.jpg to 1.jpg then save the location of 1.jpg to the database.How do i go about coding it? Link to comment https://forums.phpfreaks.com/topic/29772-upload-of-image/ Share on other sites More sharing options...
bljepp69 Posted December 7, 2006 Share Posted December 7, 2006 [url=http://www.php.net/rename]rename()[/url]Since you are picking the new name / location with above command, you should be able to store that in a db. Link to comment https://forums.phpfreaks.com/topic/29772-upload-of-image/#findComment-136719 Share on other sites More sharing options...
helppy Posted December 7, 2006 Author Share Posted December 7, 2006 thanks.I will try that. Link to comment https://forums.phpfreaks.com/topic/29772-upload-of-image/#findComment-136731 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.