Do you mean it doesn't output the right html (which it should if you pasted it right, look at the html source)
or the browser doesn't display it (bgcolor in <td> is **deprecated, what doctype are you using?)

Adam wrote:

Below is a snip of my script. Can't get it to use $test as a color
variable!!
Can anyone help?? I have tried everything i can think of (bar just using a
color value instead of variable).

The context is :: for formatting an XML doc.

$test='#FFFFFF';

echo "<td width=\"33%\" bgcolor=\"".$test."\">";

Any help much appreciated,
Adam.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to