PHP style

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dannysheps@hotmail.com
    Second Lieutenant

    • Feb 2008
    • 138

    PHP style

    Hello

    does anybody knows how can i add style to PHP code for ex. :

    echo Date("d/m/y") ;

    i want it to appear not as simple black letters , lets say i want it in RED or with YELLOW backround and stuff

    is it possible ?

    10x
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    Re: PHP style

    Theres multiple ways to go about it, the simplest for reading the code would be something like

    PHP Code:
    <?
    echo '<span style="color: #FF0000">'.date("d").'</span>';
    echo '<span style="color: #000000">/</span>';
    echo '<span style="color: #0000FF">'.date("m").'</span>';
    echo '<span style="color: #000000">/</span>';
    echo '<span style="color: #FFFF00">'.date("y").'</span>';
    ?>

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment

    Working...
    X