First Draft

First Draft of the Example Files
This commit is contained in:
RobinNixon
2020-12-10 13:21:38 +00:00
parent 77a7b57c4f
commit 0335342e00
1127 changed files with 46959 additions and 56 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>";
}
?>