Hello, id like to ask for help on my recent thing i have been working on... I have made revcms compatible with another database/emu (RealityRP), and i was wondering if anyone knew how to do a second name? Such as First-Second, such as on reality cms... but in revcms? now i have configured the register to do a second name and it inserts into the database fine! but I'm stuck in 'UserValidation' the login... SELECT * from 'table' WHERE username = , basicly that query and i can't login when doing double names in database/register page? i cant even login with single names now... witcvh is weird? does anyone know how to config the Login to work with 2 names?
I know what your thinking what i meen is i have 1 form for username... and 1 for password and i want to know how i can just type in usernamd field First_Name-Second_Name such as... x-Joker
Note : I think it is something to do with the invalid username function? preg_match in php? like not allowing symbols such as '-'
any ideas please post all the help you can give below, will help alot thanks!
heres some of my code out of class.users.php that i think is something to do with it?
and i think this is something to do it aswellCode:if(strlen($username) <= 25 && ctype_alnum($username))
Code:final public function userValidation($username, $password) { global $engine; if($engine->num_rows("SELECT * FROM characters WHERE username = '" . $username . "' AND password = '" . $password . "' LIMIT 1") > 0) { return true; } return false; }


Reply With Quote![[revcms][double name]](http://ragezone.com/hyper728.png)

