Final
This commit is contained in:
RobinNixon
2020-12-10 13:51:38 +00:00
parent 53063593e3
commit 3bc0bb7409
280 changed files with 0 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php // Example 06: checkuser.php
require_once 'functions.php';
if (isset($_POST['user']))
{
$user = sanitizeString($_POST['user']);
$result = queryMysql("SELECT * FROM members WHERE user='$user'");
if ($result->rowCount())
echo "<span class='taken'>&nbsp;&#x2718; " .
"The username '$user' is taken</span>";
else
echo "<span class='available'>&nbsp;&#x2714; " .
"The username '$user' is available</span>";
}
?>