registrace v1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user