Forum Moderators: coopster
unexpected T_STRING in /home/content/mywebsite/html/index.php on line 197
This is what I have entered in my code
<?php
{{capture assign="count"}}<$MTBlogEntryCount$>{{/capture}}
{{if $smarty.request.offset > 0}}
<a href="?offset={{math equation="max(x-12,0)" x=$smarty.request.offset}}">Previous</a>
{{/if}}
{{if $smarty.request.offset < $count-12}}
{{if $smarty.request.offset > 0}}
¦
{{/if}}
<a href="?offset={{$smarty.request.offset+12}}">Next</a>
{{/if}}
<MTEntries lastn="12" offset="`$smarty.request.offset`">
?>
Thanks in advance
Some template systems have php files as their 'template files'; others have got text files as their text files.
Anyways, if you've saved this file with the .php extension or any other extension you've told your server to parse as php (ignore if you haven't done anything special in this department), the <?php part will tell PHP to parse this as php code. But it isn't php code, it's template code that your template engine reads (not as php), and figures out what to output. So remove the
<?php
and the
?>
at the end
and see what you get.