Trouble Logging In my Application "Invalid Login" |
I have built an application and am having a problem with login, which I can't identify but I believe it might come from my model when I try to log in I get unsuccessful message, I believe I can read database but don't know where the problem is
Here is my code Controller Code: public function index(){ Model Code: function get_data($table, $fields, $condition,$orderby=NULL) { Database Code: --
There is something wrong with you if in the model
if($cnt>0){ you are mixing if with and without curly bracktet. Start using proper formatting style and you will not suffer with undefined issues in you logic. Allway use {} so you can easily understand what going on.
On the package it said needs Windows 7 or better. So I installed Linux.
http://www.php-fig.org/psr/psr-2/
On the package it said needs Windows 7 or better. So I installed Linux.
Also you should not be using MD5 for hashing your passwords.
See the php.net password_hash functions What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |