I the following error
Parse error: parse error, unexpected T_ELSE in C:\Program Files\Apache Group\Apache2\htdocs\browsermatch.php on line 9
I know it has to do something with the else statement but I can't figure it out here is the code below
<?
$agent = getenv("HTTP_USER_AGENT");
if (preg_match("/MSIE/i", "$agent")) {
$result = "You are using Microsoft Internet Explorer.";}
else if (preg_match("/mozillia/i", "$agent")); {
$result = "You are using Netscape"; }
else {
$result = "You are using $agent";
}
?>
<html>
<head>
<title>Browser Match Results</title>
</head>
<body>
<? echo "<P>$result</P>"; ?>
</body>
</html>
😕