Quick and dirty: I would like to check if a specific row already exists using only INSERT rights.
Explanation
I have restricted my database account to INSERT rights for security purposes. I realize there are other steps to take after mysqli_real_escape_string but being a rookie to both PHP and MySQL, I thought this to be the best catch-all at thwarting injections.
After submit, the form does its validation checks and attempts to create the row and either passes or catches a 1062 error and says the username already exists.
I now want to implement a preemptive AJAX call using the same DB account. I thought about issuing a dummy update statement (that makes no changes) to check for a duplicate, but evidently that fails without SELECT rights. SELECT right is the main one I was attempting to avoid; is this being naive and what would be the proper way to go about this?