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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
helppy Posted December 7, 2006 Author Share Posted December 7, 2006 thanks.I will try that. Quote Link to comment Share on other sites More sharing options...
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.