Easy question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vicious
Forum Contributor
Posts: 105
Joined: Fri Jun 20, 2003 12:40 pm

Easy question

Post 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
Vicious
Forum Contributor
Posts: 105
Joined: Fri Jun 20, 2003 12:40 pm

Post by Vicious »

Ok I figured out that one now How do i add css style to a printed variable?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Re: Easy question

Post by qads »

here is a example...

Code: Select all

<?php
$title= "Team 101 Designs";
echo '<div style="title">'.$title.'</div>';
?>
Vicious
Forum Contributor
Posts: 105
Joined: Fri Jun 20, 2003 12:40 pm

Post by Vicious »

I actually have settings included into the index. What i figured out is

Code: Select all

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