I have this line in my code:
[php]<a <? = ($id == 1) ? 'class="Current"' : 'href="sample.php?id=1"';?>>Tab 1[/php]
it returns a few tabs that when i click on a page loads up under the tag. But for some reason the tab title comes out as “> Tag 1” instead of “Tag 1”. For some reason the closing “>” bracket of the tag is being sent as text. So does anyone know the syntax of how i would write that line?
Here is the line in context.
[php]
<?php $id = isset($_GET['id']) ? $_GET['id'] : 1; ?> [/php]