04-10-2017, 12:05 PM
The validate class won't do that by itself, so basically you'll have to run a query like
.... //fill in your conditions here
//get a count of the results
//No results found, therefore it is unique)
//do something
Code:
$checkQ = $db->query("SELECT * FROM users WHERE
Code:
$checkC = $checkQ->count();
Code:
if($checkC < 1) {
//do something
Code:
}