![]() |
Crazy with callbacks - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Crazy with callbacks (/showthread.php?tid=62106) Pages:
1
2
|
RE: Crazy with callbacks - CroNiX - 06-10-2015 oh, instead of this in the auth::username_check(): return ($query->num_rows() > 0); You probably need: return ($query->num_rows() == 0); because if there were NO results, it means the username was NOT taken and the rule should pass (true). It should fail (false) if there are any results because the username already exists. RE: Crazy with callbacks - StratoKyke - 06-10-2015 I love it ![]() Thanks for the support ![]() RE: Crazy with callbacks - CroNiX - 06-10-2015 did it work? RE: Crazy with callbacks - StratoKyke - 06-10-2015 Yes ![]() RE: Crazy with callbacks - Blair2004 - 06-10-2015 (06-10-2015, 05:37 AM)StratoKyke Wrote: I'm going crazy,Why do you return before form validation set message use ??? |