That is what I thought, but I believe the logic is backwards for "Not Same As" validation. I just debugged mine and my belief seems to be correct.
If the statement is true, and they are the same it should fail so it should be ...)?"":"123";
I just finished debugging mine. I am doing something a little different, but the same general idea. I'm using file with overwrite as the option for same file names, so I create a recordset that searches existing fields for the posted file name and use your method for checking that the posted file name is not already in the database (on the update page it will have to screen out the record being updated WHERE ... AND id != $_POST["WADAUpdateRecordID"])
The statement I am using which is working for this purpose is:
<?php echo((isset($_FILES["musicfile"]) && ($_FILES["musicfile"]["name"] == $row_filecheck["musicfile"]) && ($totalRows_filecheck > 0))? "":"Pass"); ?>