Jump to content

</p> issue


goldenairways

Recommended Posts

I am currently skinning my phpVMS. On the sidebar instead of having the latest pilot and flights just on the home page, I want them on every page so I have put them in the sidebar however when I put this code in:

<h2>Our Latest Recruit</h2>
<p>
<?php MainController::Run('Pilots', 'RecentFrontPage', 1);
</p>

and on the page it says

Parse error: syntax error, unexpected '<' in /home/goldair/public_html/lib/skins/simple_blog/header.tpl on line 36

The "</p>" is on line 36. I might be just not thinking right, because its 01:08 in the morning here lol however I am pretty sure it should work. If you could help then it'd be great. Its pretty much just a coding issue I think though. I might suddenly figure it out or it springs to mind but I am not sure yet

Thanks in advance.

Link to comment
Share on other sites

  • Administrators
<h2>Our Latest Recruit</h2>

<p>

<?php MainController::Run('Pilots', 'RecentFrontPage', 1);

</p>

You are missing the closing php tag, it should be:

<h2>Our Latest Recruit</h2>
<p>
<?php MainController::Run('Pilots', 'RecentFrontPage', 1);?>
</p>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...