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
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
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
There are currently 1 users browsing this thread. (0 members and 1 guests)