In any event, this is 2018 and this is the wrong syntax.
UPDATE: Also I do highly recommend "Consider some kind of DB validation process." There are many ways that a filename stored in the DB can go "wrong".
In reply to Re^3: Avoiding duplicate filenames
by Marshall
in thread Avoiding duplicate filenames
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |