the error is in the user.class that im inserting
public function create($POST){
$errors = array();
$arr[‘username’] = ucwords(trim($POST[‘username’]));
$arr[’email’] = trim( $POST[’email’]);
$arr[‘password’] = $POST[‘password’];
$arr[‘gender’] = trim($POST[‘gender’]);
->$arr[‘date’] = date(“Y-m-d H:i:s”);
if you declared data instead of date will give you this kind of errror
it might say it has errors in db.class but you will check if the mistake is given in db.class or user.class