Hello,
I don't know if this is a good way. But I'm using cascade delete. E.g. I have a table tbl_comments and a table tbl_files. To each comment I can attach more files. The files are stored on my harddisk.
With cascade deleting, I delete a comment and all the file records are deleted. No problem so far
But how can I delete the file from my harddisk? I've read somewhere that you can do this by writing a trigger on delete. But I've no knowledge about triggers. Can someone help me on my way or give a good tutorial about triggers?
In my tbl_files i've offcourse a field where the file is stored.
thanks!
visit my website at
I don't know if this is a good way. But I'm using cascade delete. E.g. I have a table tbl_comments and a table tbl_files. To each comment I can attach more files. The files are stored on my harddisk.
With cascade deleting, I delete a comment and all the file records are deleted. No problem so far
But how can I delete the file from my harddisk? I've read somewhere that you can do this by writing a trigger on delete. But I've no knowledge about triggers. Can someone help me on my way or give a good tutorial about triggers?
In my tbl_files i've offcourse a field where the file is stored.
thanks!
visit my website at