Parse error: parse error, unexpected '>' in results.php on line 41
Line 41 is as follows:
echo "<p>Number of events found: ".$num_results."</p>";
I looked at all of the code leading up to this line and I don't see any problems with unmatched "<". My mistake is probably something simple that I am overlooking.
If someone could spot my mistake I would greatly appreciate it.
The full code is as follows.
Code: Select all
<html>
<head>
<title>Mimi System - Search Page</title>
<style type="text/css">
.event {position:absolute; top:40px; right:10px;}
</style>
</head>
<body>
<?php
$eventid = $_POSTї'eventid'];
$computer = $_POSTї'computer'];
$log = $_POSTї'log'];
trim($eventid);
trim($computer);
trim($log);
@ $db = mysql_connect("localhost", "isa", "isa");
if (!$eventid || !$computer)
{
echo "You have not entered in sufficient search criteria. Please go back and try again.";
exit;
}
if (!$db)
{
echo "Error: Could not connect ot database. Please try again later.";
exit;
}
mysql_select_db("logdb");
$query="SELECT * FROM ".$log." where computer=".$machine." and eventid=".$eventid.";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo "<p>Number of events found: ".$num_results."</p>";
for ($i=0; $i < $num_results; $i++)
{
$row = mysql_fetch_array($result);
echo "<p><strong>".($i+1).". Log: ";
echo htmlspecialchars(stipslashes($rowїlog]));
echo "</strong><br>Event ID: ";
echo htmlspecialchars(stripslashes($rowїeventid]));
echo "</strong><br>Computer: ";
echo htmlspecialchars(stripslashes($rowїcomputer]));
echo "</p>"
}
</body>
</html>