I encountered a syntax error while running the following code from a book.
ERROR: Parse error: syntax error, unexpected $end in D:\wamp\www\Exam\sys\class\class.exam.inc.php on line 140
Code:
private function _adminEntryOptions($id)
{
return <<<ADMIN_OPTIONS
<div class="admin-options">
<form action="admin.php" method="post">
<p>
<input type="submit" name="edit_event"
value="Edit This Event" />
<input type="hidden" name="event_id"
value="$id" />
</p>
</form>
</div><!-- end .admin-options -->
ADMIN_OPTIONS;
}
please help!