If you are using the SQL as your database and you have to check that the entry done by the user exists or not then you will have to call the select function which can be written as follows :
Code:
$SQL = "select * from USERS where username='$username'";
After this you will have to run the query mentioned below on the database :
Code:
$result = mysql_query($SQL) or die (mysql_error());
Then you will have to use the code stated down :
Code:
$num = mysql_numrows($result);
The user name already exists, if the number returned is not zero.
Bookmarks