Please help me with this PHP code

Hi
I am very much a newbie and am trying to work out why the following piece of code is not working

[php]

<?php if ($products_description != '') { ?>
<?php echo stripslashes ($products_description); ?>
<?php } ?>
<?php } elseif($tabs[$i] == 'Tutorials') { ?>
<?php echo stripslashes ($tutorials); ?>

<?php } ?>
	   </div> 

[/php]

Eevry time I add it into my existing code I get a “PHP Parse error: syntax error, unexpected $end in” error

This comment is not closed…
[php] <!-- Make tabs (the things you click), only show if they exist in $tabs
[/php]

I think it should be [php] [/php]

I don’t know if that will help but it’s a start…

Also, you can not use spaces as class names:

class=“productGeneral biggerText”

You need to remove the space or use an underscore “_” !

Hope that helps…

Sponsor our Newsletter | Privacy Policy | Terms of Service