Hi, i'm new to this forum, and I apologise if this is in the wrong section. I am trying to get my page to validate, using the W3C XHTML validator, which it should do. I am using a variable stored in a MySQL table as the background colour, however the validator is not accepting this.
Warning Line 107 column 15: character "<" is the first character of a delimiter but occurred as data.
<body bgcolor="<?php echo $bgcolour; ?>">
Is there any way of making this validate? I posted this on a PHP help forum, because I am looking at a different way of achieving the same outcome using PHP. Thank you in advance for any help.