registrace v1

This commit is contained in:
Milan Toman
2024-02-28 00:15:34 +01:00
parent a4d23b6845
commit 70458017bb
4 changed files with 160 additions and 36 deletions

View File

@@ -20,8 +20,15 @@
while($row = $result->fetch_assoc()) {
$races[] = $row;
}
}else{
echo "0 results";
}
// would be nice to check if the name / nick / email exists
$sql = "SELECT ID, NAME, SURNAME, EMAIL from REGISTERED where EMAIL_CHECK like '".$email_check."'";
$result = $conn->query($sql);
if ($result->num_rows > 0){
$unique_email = False;
}
else{
$unique_email = True;
}
$conn->close();
//var_dump($races);