Page 1 of 1

Easy question

Posted: Tue Jan 27, 2004 2:53 pm
by Vicious
i got this script
<?PHP
$title= "Team 101 Designs";
$date= date("F j, Y, g:i a");
PHP?>

I get this error Warning: Unexpected character in input: ''' (ASCII=92) state=1 in /home/httpd/vhosts/team101.net/httpdocs/settings.php on line 2

Parse error: parse error, unexpected T_STRING in /home/httpd/vhosts/team101.net/httpdocs/settings.php on line 2

Any anwsers will help

Posted: Tue Jan 27, 2004 3:29 pm
by Vicious
Ok I figured out that one now How do i add css style to a printed variable?

Re: Easy question

Posted: Tue Jan 27, 2004 3:36 pm
by qads
here is a example...

Code: Select all

<?php
$title= "Team 101 Designs";
echo '<div style="title">'.$title.'</div>';
?>

Posted: Tue Jan 27, 2004 5:54 pm
by Vicious
I actually have settings included into the index. What i figured out is

Code: Select all

&#1111;p]
<? 
echo "$date";
?>
&#1111;/p]