The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validate Across Columns
#2
The validate class won't do that by itself, so basically you'll have to run a query like

Code:
$checkQ = $db->query("SELECT * FROM users WHERE
.... //fill in your conditions here

Code:
$checkC = $checkQ->count();
//get a count of the results

Code:
if($checkC < 1) {
//No results found, therefore it is unique)
//do something
Code:
}
  Reply


Messages In This Thread
Validate Across Columns - by tradeJmark - 04-09-2017, 11:31 PM
Validate Across Columns - by mudmin - 04-10-2017, 12:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)