Just modify the query in the function so that the username field and table name match with yours and copy and past the function into your script. Then you can call it as folllows:
PHP Code:if (user_exists('dave')) {
/* you are a user */
} else {
/* error you are not a user */
}




Reply With Quote