The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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 Class
#2
Here's an example:

Code:
$rules      = [
Code:
"name" => [
Code:
"display"       => "Username",
Code:
"required"      => true,
Code:
"unique_update" => "users,".$userId,
Code:
"min"           => 1,
Code:
"max"           => 25
Code:
]
Code:
];
Code:
$validation = new Validate();
Code:
$validation->check($_POST, $rules);
Code:
if ($validation->passed()) {};
  Reply


Messages In This Thread
Validate Class - by marceloatmartins - 07-10-2017, 12:45 PM
Validate Class - by faguss - 07-14-2017, 10:42 PM
Validate Class - by karsen - 07-15-2017, 02:49 PM
Validate Class - by marceloatmartins - 07-17-2017, 03:28 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)