• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Undefined variable in model

#4
[eluser]Achmed1[/eluser]
[quote author="CroNiX" date="1380741825"]Select takes a single string, you're passing multiple strings...
Code:
$this->db->select('name', 'pass');
should be
Code:
$this->db->select('name, pass');
[/quote]

The solution was this

This

Code:
public function login()

To This

Code:
public function login($name,$pass)

Thanks for the help


Messages In This Thread
Undefined variable in model - by El Forum - 10-02-2013, 08:53 AM
Undefined variable in model - by El Forum - 10-02-2013, 11:21 AM
Undefined variable in model - by El Forum - 10-02-2013, 12:23 PM
Undefined variable in model - by El Forum - 10-02-2013, 01:33 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.