PHP T_ELSE error on custom-built, undocumented application - TechRepublic
Question
December 11, 2008 at 06:48 AM
ccurry

PHP T_ELSE error on custom-built, undocumented application

by ccurry . Updated 17 years, 7 months ago

Hello all,

The php below is generating errors when executed. The code below starts at line 313; it generates the following error:
“PHP Parse error: syntax error, unexpected ‘}’ in D:\members\searchPublicResult.php on line 314”
When I remove the offending ‘{‘ character, the following error (which confounds me) surfaces:
“PHP Parse error: syntax error, unexpected T_ELSE in D:\members\searchPublicResult.php on line 315”

Anything obvious about this code that is causing it to fail? Thanks for your help!

}

else
{
$pageNav = new mosPageNav(
$total, $limitStart, $limit );
$db->SetQuery($query);

$result = $db->ExecFill();
if($result==NULL ||
count($result)==0)
{

echo “

“;
echo “

“;
echo “

“;
echo “

“;
}
else
{
?>

?

No record found

?

?

echo FormatDetailDegree(&$result[0]);
?>


Member Name:?
Name; ?>

Elected:?
YearElected; ?>

Class:?
Class; ?>
? Institution Degree Year
Current Position:?Position; ?>
? ? ? ?

?

}
}
?>

This discussion is locked

All Comments