View Single Post
  #2 (permalink)  
Old November 21st, 2012, 12:46 PM
UseLess UseLess is offline
Friend of Wrox
Points: 651, Level: 9
Points: 651, Level: 9 Points: 651, Level: 9 Points: 651, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Location: North East UK
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

It means that on this line;
Code:
if (cmpfx($rs["user_name"], $_POST["username"]) && cmpfx($rs["password"], md5($_POST["password"]))) {
you're calling the function 'cmpfx' which has not been defined. So you would need to define the function like so;
Code:
function cmpfx($var, $var)
{
// function code in here
}
You'd replace the '// function code in here' with code to work on the 2 passed values and then return a result.
Reply With Quote