TechSpot

Help with some PHP code?

By YNWA
Mar 30, 2007
Topic Status:
Not open for further replies.
  1. Didnt really know where to put this, but here goes...

    I have a few pieces of PHP code than I need solving first off is this, I need the text to display in Red and also italics. Its simple if you know how but unfortunatley I dont, anyone out there?

    I have so far:

    <?php

    function nSFont ($txt,$size,$italics,$colour)

    {
    echo ("<font size=\"$size\"face=\"Helvectica,Arial,Sans-Serif, red, italics\">
    $txt,<?font>");
    }
    nSFont ("What You Looking At?<br>",10);
    nSFont ("YOU!<br>",6);
    ?>

    But all i get is the text in normal black font, any help would be great?
  2. jobeard

    jobeard TS Ambassador Posts: 13,406   +314

    no, you need help with HTML and style sheets, as your example code
    has the wrong < font ...> code.

    Once again, this is not a forum for programming assistance
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.