943,518 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2974
  • PHP RSS
Aug 4th, 2004
0

Error when editing PHP lines in a theme file.

Expand Post »
I'm using PHPNuke and i get the following error:


Parse error: parse error, unexpected '\"', expecting ',' or ';' in /home/jadedf/public_html/portal/themes/3D-Fantasy/theme.php on line 58

line 58 is below and it is the only line i've played around with in the theme.php file..i'm trying to get an image for my background. help!

"<body bg=\"graybg.jpg" "text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\";

whats wrong with it?

thanks,
tim
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Icarus73 is offline Offline
1 posts
since Aug 2004
Aug 4th, 2004
0

Re: Error when editing PHP lines in a theme file.

It should be..

[PHP]
"<body bg=\"graybg.jpg\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";
[/PHP]

I THINK. I don't use PHPNuke but it seems you just incorrectly escaped the string.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kenleycapps is offline Offline
9 posts
since Aug 2004
Aug 4th, 2004
0

Re: Error when editing PHP lines in a theme file.

[PHP]echo "<body background=\"graybg.jpg\" "text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";[/PHP]

Shoud be working.
PoA
Reputation Points: 19
Solved Threads: 9
Posting Whiz in Training
PoA is offline Offline
234 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Simple (I think) Code Question
Next Thread in PHP Forum Timeline: PHP > Alaric





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC