+ Reply to Thread
Results 1 to 2 of 2

Thread: PHP style
      
   

  1. #1
    dannysheps@hotmail.com is offline Second Lieutenant
    Join Date
    Feb 2008
    Posts
    138

    Default 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

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49