This line:
$rsDeleteFile->bindParam("i", "".($_POST["WADADeleteRecordID"]) ."", "-1"); //colname
should be:
$rsDeleteFile->bindParam("i", "".(isset($_POST["WADADeleteRecordID"])?$_POST["WADADeleteRecordID"]:"") ."", "-1"); //colname
since the form post value won't exist until after the form has posted.