newlearner2005
Programmer
Hello everybody,
Could anybody show me how to delete a particular file by using PHP ? ( not in MySQL prompt)
On the webpage I design look like this
test1.doc [DELETE]
test2.txt [DELETE]
test3.jpg [DELETE]
...
...
Assume (I want to delete test2.txt) I click on [DELETE] on the coresponding line of test2.txt
Then it will be deleted ( It will show the same page but I did not see text2.txt anymore)
I created a database with id column as primary key to recognize a particular file. But when I delete test2.txt or any file, no matter what, it always deletes the first file on line 1 ( in this case test1.doc )
Thank you very much for your help
new learner
Could anybody show me how to delete a particular file by using PHP ? ( not in MySQL prompt)
On the webpage I design look like this
test1.doc [DELETE]
test2.txt [DELETE]
test3.jpg [DELETE]
...
...
Assume (I want to delete test2.txt) I click on [DELETE] on the coresponding line of test2.txt
Then it will be deleted ( It will show the same page but I did not see text2.txt anymore)
I created a database with id column as primary key to recognize a particular file. But when I delete test2.txt or any file, no matter what, it always deletes the first file on line 1 ( in this case test1.doc )
Thank you very much for your help
new learner