diff --git a/add.php b/add.php
index 895028d..25ec192 100755
--- a/add.php
+++ b/add.php
@@ -13,7 +13,7 @@
-AJServer password retrieval
+One Time Password Retrieval Tool
query("SELECT id from pwtool where id = 0 and code='".mysqli_real_escape_string($pdo, $adminPassword)."';");
- $myLookup = $pdo->prepare("SELECT id from pwtool.mypasswd where id = 0 and code='($adminPassword)';");
+ $myLookup = $pdo->prepare("SELECT id from pwtool.mypasswd where id = 1 and code='$adminPassword';");
$myLookup->execute();
//$myLookup = $pdo->query("SELECT id from pwtool.mypasswd where id = 0 and code='($adminPassword)';");
$count = $myLookup->rowCount();
- if($count = 1){
+ if($count == 1){
$displayForm = false;