Forgive my ignorance but I can't quite figure out how to code that query:
$rsDeleteFile = new WA_MySQLi_RS("rsDeleteFile",$framework_connect,1);
$rsDeleteFile->setQuery("SELECT id, `file` FROM tbl_images WHERE id = ?");
$rsDeleteFile->bindParam("i", "".($_POST["WADADeleteRecordID"]) ."", "-1"); //colname
Also, wouldn't this have to come after the delete function so the WADADeleteRecordID would be defined, but then that would be after the redirect.