<?php include_once 'functions.php'; $f = new db_functions(); // echo $f->select("users", array("id","username"), 5)."<br>"; // echo $f->select("users", array("id","username"), false,array("username","ASC"),4)."<br>"; // $input['username']='******'; // $input['password']='******'; // echo $f->insert("users", $input)."<br>"; // $input2['username']='******'; // echo $f->insert("users", $input2)."<br>"; // $update['username']='******'; // $update['password']='******'; // $update['firstname']='ellol'; // echo $f->update("users", $update, 5); // $update2['firstname']='ellol'; // echo $f->update("users", $update2, 5); // include_once 'users.php'; // $users=new users(); // $user['username']='******'; // $user['password']='******'; // echo $users->register($user); $input['username'] = '******'; $input['password'] = '******'; $input['OR'] = array('email' => '*****@*****.**', 'username' => 'lol'); $relation[] = 'AND'; $relation[] = 'OR'; echo $f->check("users", $input, $relation, array("id", "username", "password", "email"));