
Originally Posted by
gjh42
Code:
<div class="attcontrolcomments"><table border="1" style="border: 1px solid #FFC000;" bgcolor="#FFFFCC" width="500" cellpadding="3" cellspacing="3"><?php
if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
?>
<tr><td><h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3></td></tr></table></div>
<?php
}
?>
You open the div and table, and then close them inside a conditional segment so they will actually only close if the condition is true. If the condition is false, they never close.
Move the closing </table></div> to below the } so they are always executed.
Code:
<div class="attcontrolcomments"><table border="1" style="border: 1px solid #FFC000;" bgcolor="#FFFFCC" width="500" cellpadding="3" cellspacing="3"><?php
if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
?>
<tr><td><h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3></td></tr>
<?php
}
?>
</table></div>
Thanks, Its removed those errors but now I am getting the following validation errors -
Code:
Line 574, Column 155: end tag for "table" which is not finished
…;" bgcolor="#FFFFCC" width="500" cellpadding="3" cellspacing="3"></table></div>
✉
Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.