Jump to content

deleting files from database and server


shaneR
 Share

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...