shaneR Posted March 19, 2007 Share Posted March 19, 2007 Hi everyone! my database site is now uploading files to my server and at the same time writting this file name and the users id to my database. What i need to do now is allow the user to access their own content and be able to delete this from the server and database.I have already been trying a few different methods but i just cant seem to get my head around it.Any code or advice would be appreciated, Thanks Link to comment Share on other sites More sharing options...
pulpfiction Posted March 21, 2007 Share Posted March 21, 2007 First you would check the database to see the list of files uploaded by the user. then display that list of files and give the user option to delete. On particular file delete, remove file from server and row from database. If you already started coding post it. Delete file code: http://www.w3schools.com/asp/met_deletefile.asp Link to comment Share on other sites More sharing options...
shaneR Posted March 23, 2007 Author Share Posted March 23, 2007 First you would check the database to see the list of files uploaded by the user. then display that list of files and give the user option to delete. On particular file delete, remove file from server and row from database. If you already started coding post it. Delete file code: http://www.w3schools.com/asp/met_deletefile.asp Thankyou after taking your comments into consideration im now able to perform the delete from both the server and database.Regards,Shane Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now