View Single Post
Old 07-12-2009, 05:15 PM   #2 (permalink)
adamdecaf
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

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.
__________________
My Site
adamdecaf is offline  
Reply With Quote
The Following User Says Thank You to adamdecaf For This Useful Post:
rguy84 (07-14-2009)