I have tried everything in my mind to get this too work. Im going to see if anyone else can. The problem is is when someone trys to access viewpmsg.php i get this error.....
Warning: Supplied argument is not a valid MySQL-Link resource in /web/sites/178/kfoolio/www.kfoolio.f2s.com/html/functions.php on line 360
Error doing DB query in check_user_pw()
When i go into functions.php i see this:
function check_user_pw($username, $password, $db) {
global $system, $prefix;
if (!$system) {
$password = crypt($password,substr($password,0,2));
} else {
$password = $password;
}
#$password = md5($password);
$username = addslashes($username);
$sql = "SELECT user_id FROM users WHERE (username = '$username') AND (user_password = '$password')";
$resultID = mysql_query($sql, $db); //this is line 360
if (!$resultID) {
echo mysql_error() . "<br>";
die("Error doing DB query in check_user_pw()");
}
return mysql_num_rows($resultID);
} // check_user_pw()
I dont see a thing wrong with it. does anyone have any ideas?






Bookmarks