PDA

View Full Version : Add font color to h3 tag in php? ( newbie )


HostDirectory
Sun 25th Apr '04, 9:58am
Hi, i am a complete newbie when playing around with php.

I have been trying to hack my archives index file. Everything so far so good but i have come up aganst a problem. I have added a h3 heading to the archive files showing the thread subject but i cannot color it.

This works - echo "<h3>$threadinfo[title]</h3>";
But when i try to color it to match my template i get an error?echo "<h3><font color="#333399">$threadinfo[title]</font></h3>";
Like i said... i am a complete newbie.

rnawky
Sun 25th Apr '04, 10:16am
echo "<h3><font color=\"#333399\">$threadinfo[title]</font></h3>";

The "" messes it up so you have to do \"

HostDirectory
Sun 25th Apr '04, 11:04am
Thanks... i remember reading about this in my php book some time ago... i really must read that book properly.