Final
Final
This commit is contained in:
@@ -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'> ✘ " .
|
||||
"The username '$user' is taken</span>";
|
||||
else
|
||||
echo "<span class='available'> ✔ " .
|
||||
"The username '$user' is available</span>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user