Hi,
I've got a DB set up with an e-mail and user column that's unique.
That way if anyone enters a username or e-mail identical to someone else I can handle it and say "that username or email is already taken".
At the moment I'm just getting the output (error) from this code:
which is: Error: Duplicate entry 'myusername-myusername@anywhere.com' for key 'user'
Any thoughts on how to do this?
Kind Regards
I've got a DB set up with an e-mail and user column that's unique.
That way if anyone enters a username or e-mail identical to someone else I can handle it and say "that username or email is already taken".
At the moment I'm just getting the output (error) from this code:
PHP:
if (!mysql_query($sql,$con)) {
die('Error: ' . mysql_error());
}
Any thoughts on how to do this?
Kind Regards