you could add an additional if statement around the delete file behavior so it only triggers if a a file name exists in the data base:
<?php if($row_recordsetName['imageColumn'] != "") { ?>
<delete file code>
<?php } ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.