i get this error:
Parse error: parse error, unexpected T_ELSE in /usr/local/psa/home/vhosts/chemical-conversions.com/httpdocs/member.php on line 1387
heres my code:
btw-the last "else{" is line 1387
PHP Code:
$refcount = $DB_site->query_first("SELECT count(*) AS count
FROM user
WHERE referrerid = '$userinfo[userid]'");
$referrals = $refcount[count];
eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
}// Leave Away Message in Profile (v1.2)
if ($userinfo[away]=="1") {
$sincedate = vbdate($dateformat, $userinfo[awaydate]);
if ($userinfo[returndate]=="0000-00-00") {
$returndate = "Unknown";
} else {
$returnaway = explode("-", $userinfo[returndate]);
$returndate = vbdate($dateformat, mktime(0,0,0,$returnaway[1],$returnaway[2],$returnaway[0]));
}
eval("\$away .= \"".gettemplate("getinfo_away")."\";");
} else {
$away = "";
}
// Leave Away Message in Profile (v1.2)
else {
$referrals = '';
}
// get extra profile fields