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
Vicious
Forum Contributor
Posts: 105 Joined: Fri Jun 20, 2003 12:40 pm
Post
by Vicious » Tue Jan 27, 2004 2:53 pm
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 » Tue Jan 27, 2004 3:29 pm
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
Post
by qads » Tue Jan 27, 2004 3:36 pm
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 » Tue Jan 27, 2004 5:54 pm
I actually have settings included into the index. What i figured out is
Code: Select all
їp]
<?
echo "$date";
?>
ї/p]