Public paste
asdsd
By: Xmoo | Date: Mar 25 2009 15:44 | Format: PHP | Expires: never | Size: 594 B | Hits: 639

  1. $username = $_POST['member_name'];
  2. $email = $_POST['member_email'];
  3.  
  4.                   $tst = ("SELECT * FROM members");
  5.                   $resultaat2 = mysql_query($tst) or die ("Error: " .mysql_error());
  6.                   while ($record2 = mysql_fetch_object($resultaat2)){
  7.             $userfound = $record2->member_name;
  8.             $emailfound = $record2->member_email;
  9.  
  10.   if ($username == $userfound) {
  11.  echo "<span class=warning>Username already in use</span>";
  12.  }      
  13.    if ($email == $emailfound) {
  14.  echo "<span class=warning>Email address already in use</span>";
  15.  }
  16.  else {
  17.  
  18. //Registration stuff here
Latest pastes
7 hours ago
6 days ago
18 days ago
23 days ago
25 days ago