hey im very new to php, ive got a simple login script which has the following code:
function usernameTaken($username){
global $conn;
if(!get_magic_quotes_gpc()){
$username = addslashes($username);
}
$q = "select username from users where username = '$username'";
$result = mysql_query($q,$conn);
return (mysql_numrows($result) > 0);
i tried to do a search on php.net for the function usernameTaken and it doesnt come up, does this mean that usernameTaken function used here was been made by the script coder? if so can it be changed to something else?
anyhelp would be greatly appricieated thank you.