[eluser]John_Betong[/eluser]
Is the log file from your site?
When I have similar problems I
echo __LINE__ so that I know what is happening;
Code:
<?php
if(var == 1) { echo __LINE__; ?>
HTML HERE
<?php
echo __LINE__; } ?>
<?php
if(var == 2) { echo __LINE__; ?>
HTML HERE
<?php
echo __LINE__; } ?>
Remember to remove every echo when you establish your problem.
Can you give us the link to the offending pages?