Oops, I should've mentioned that I'm using a table within an SQL database to hold the user information, here's a snippet of my code to see how I connect to the database. I just wanna know if there's a quick way I can check if an entry exists or not and then decide whether or not to allow the user to sign up (if the entry doesn't exist) or to disallow registration (if the entry does exist).
Code might be a little squished:
$DBquery = "INSERT INTO $accessTbl (dateadded, handle, firstname, lastname, emailaddress, password, country, language, agerange, alternativeemail, ICQnumber, AIMname, Yahooname) VALUES ('$date', '$handle', '$firstname', '$lastname', '$emailaddress', '$password', '$country', '$language', '$agerange', '$alternativeemail', '$ICQnumber', '$AIMname', '$Yahooname')";
if (!($link=mysql_pconnect($accessHst, $accessUsr, $accessPss))) {
die("Error connecting to $accessHost by $accessUsr"); }
if (!mysql_select_db($accessDB)) {
die("Error selecting database $accessDB"); }
if (!($result=mysql_query($DBquery, $link))) {
die("Error completing $DBquery statement"); }
echo("Thank you for signing up. An email will be sent to your specified email address with your user information.");
Thanks for all your help.