TechSpot

Help with some PHP code?

By YNWA
Mar 30, 2007
  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: 8,957   +587

    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.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...