Final
This commit is contained in:
RobinNixon
2020-12-10 13:51:13 +00:00
parent 3aeeb4477e
commit 53063593e3
1127 changed files with 0 additions and 0 deletions
-16
View File
@@ -1,16 +0,0 @@
<?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>";
}
?>