this is what is used in the PHPbb forums, and it works perfectly.
I did have it as this before i used that.
function validate_creds($fcreds,$username)
{
$sql = "select creds from php_users where username='$username'";
$result3=mysql_query($sql)
or die ("cant do check!");
$all3= mysql_fetch_array($result3);
extract ($all3);
if ($fcreds>$creds)
{
global $creds;
return array('error' => true, 'error_msg' => $lang['creds']);
}
else
{
return;
}
}
Perhaps to save confusion I will ask for help with this (which also does the same thing as last one but does not work)
Thanks for ur reply! 🙂