Advertisement
Crecket

Untitled

Feb 18th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. if ($row["Username"]  == $testname){
  2.     echo "Account name is already in use.<br>";
  3. }elseif($row["Email"]  == $testemail){
  4.     echo "Email is already in use.<br>";
  5. }else{
  6.     $sql = "INSERT INTO users (Username, Password, ID, Email, Firstname, Lastname) VALUES ('$testname', '$testpass', $testid,   '$testemail', '$testfirstname' , '$testlastname')";
  7.     $conn->query($sql);
  8.     echo "Account has been created.<br>";
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement