EOSERV Forum > Lounge > PHP help
Topic is locked.
Page: << 1 >>
PHP help
Author Message
Post #74027 PHP help

Hmmmm well Im starting to learn the basics of PHP but whenever I put this code in:

<font color=\"blue\">blue</font>!";


the font color comes out green and when I put green in it comes out blue? any advice.

14 years, 10 weeks ago
Post #74029 Re: PHP help

Try using hex codes (#FF0000 etc.) for your colors and see if that makes a difference.

Also check and make sure if you have a stylesheet that it isn't isn't overriding the "color" attribute of font tags.

Lastly, you can terminate the php tags mid-script and have regular html hanging out in there. For example:

<?php

//start of script

?>

<font color="blue">Blue</font>!

<?php

//rest of script

?>

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
14 years, 10 weeks ago
Post #74061 Re: PHP help


You can also do print "<font></font>";

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
14 years, 10 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Lounge > PHP help