Login2 |
[eluser]davy_yg[/eluser]
I think I find the error but still do not know how to code the login right. I wonder how should I code it? If this is the formula: $this->db->where('tablename'); $this->db->get('tablename'); This is my table: ids_user username password user_email user_fname user_address user_phone I basically needs to check if the password is the same as the inputed data.
[eluser]Tpojka[/eluser]
You missed one parameter in where clause. Code: $this->db->where('column', $request); User guide.
[eluser]davy_yg[/eluser]
ok, this is what I tried. Is this correct? controllers/clogin.php Code: public function process(){ model/login_model.php Code: public function validate($username, $password){ // same data you have sent from controller
[eluser]Tpojka[/eluser]
[quote author="davy_yg" date="1383141929"]Is this correct? [/quote] Is that working for you?
[eluser]davy_yg[/eluser]
A PHP Error was encountered Severity: Notice Message: Undefined property: Clogin::$db Filename: core/Model.php Line Number: 51 ---------------------------------------- I receive this error message: Fatal error: Call to a member function get_where() on a non-object in C:\xampp\htdocs\IndonusaCI\application\models\login_model.php on line 18 line 18: $this->db->get_where('ids_user', $username); |
Welcome Guest, Not a member yet? Register Sign In |