07-12-2009, 05:15 PM
|
#2 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
Well, once you grab the username you can do a simple mysql query.
PHP Code:
<?php // connect $connect = mysql_connect("host", "username", "password"); $result = mysql_query("SELECT * FROM ‘database‘.‘users‘ WHERE ‘user-id‘ = $submittedID"); // Then check if a row was returned. if (mysql_num_rows($result) > 0) { echo "User(s) Found!"; } else { echo "Sorry, the user was not found."; } ?>
Keep in mind this is an oversimplified chunk of code, but it should get you started.
|
|
|
|