hi all,
i need a link 'delete' so that wen i click on that link button that selected name should get delete. i know somewhat to write delete code but how to make it in a link..? can any one...
Thanks in advance.

Recommended Answers

All 7 Replies

What are you trying to delete?

a file which i had uploaded

the files will be displayed in a table.If i dont need that file so i can delete

you can use unlink() if you're trying to delete an uploaded file from it's dir

so how can i use that i havent tried it before

First you store a unique id for that file while uploading.
Get the filename from the db using the same and use unlink() to delete that file from ur folder.Using the id,you can delete the record from the db.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.