prepare("SELECT IdentityID FROM tblIdentity WHERE PublicKey=?;"); $st->bindParam(1,$_REQUEST["publickey"]); $st->execute(); if($record=$st->fetch()) { $message="This peer already exists"; } else { $st2=$db->prepare("INSERT INTO tblIdentity(PublicKey,DateAdded) VALUES(?,?);"); $st2->bindParam(1,$_REQUEST["publickey"]); $st2->bindParam(2,gmdate('Y-m-d H:i:s')); $st2->execute(); $message="Peer added"; } ?>

Add Peer

Peer Public Key
The public key must be a valid SSK public key and include the / at the end