Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';
Old 06-14-2008, 01:22 PM Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';
Junior Talker

Posts: 1
Name: Przemysław
Trades: 0
Hi, I have a little problem with my site code. I really dont know what is wrong. This is the error:
Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/piekarz/domains/dragonfans.cal.pl/public_html/themes/Dragonfans/theme.php on line 78
and this is my code:
PHP Code:
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|      Fusion 6 Theme for PHP-Fusion v6       |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org                   |
| email: webmaster@phpfusion.org              |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

// theme settings
$body_text "#000000";
$body_bg "#000000";
$theme_width "1000";
$theme_width_l "200";
$theme_width_r "200";

function 
render_header($header_content) {

global 
$theme_width,$settings;

echo 
"<center><table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class='tabela'>
  <tr>
    <td>
    <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
      <tr>
        <table width=\"1000\" height=\"269\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
    <tr>
        <td colspan=\"6\">
            <img src=\"header/index_01.jpg\" width=\"1000\" height=\"225\"></td>
    </tr>
    <tr>
        <td width=\"234\" height=\"44\" align=\"center\" valign=\"bottom\" background=\""
.THEME."header/index_02.jpg\">
            </td>
        <td>
            <a href=\"news.php\"><img src=\""
.THEME."header/glowna.jpg\" width=\"155\" height=\"28\" border=\"0\"></a></td>
        <td>
        <a href=\"forum/index.php\"><img src=\""
.THEME."header/forum.jpg\" width=\"111\" height=\"28\" border=\"0\"></a></td>               
        <td>
        <a href=\"articles.php\"><img src=\""
.THEME."header/arty.jpg\" width=\"121\" height=\"28\" border=\"0\"></a>
      </td>
        <td>
            <a href=\"viewpage.php?page_id=2\"><img src=\""
.THEME."header/wspolpraca.jpg\" width=\"138\" height=\"28\" alt="" border=\"0\"></a>
    </td>
        <td rowspan=\"2\">
            <img src=\"header/index_07.jpg\" width=\"241\" height=\"44\"></td>
    </tr>
    <tr>
        <td colspan=\"4\">
            <img src=\"header/index_08.jpg\" width=\"525\" height=\"16\"></td>
    </tr>
</table>
        
         
         <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
          <tr>
            <td></td>
          </tr>
        </table>

        </td>
      </tr>
    </table>
      <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td width=\"16\" background=\""
.THEME."panels/leftborder.gif\">&nbsp;</td>
          <td>\n"
;
}

function 
render_footer($license=false) {

global 
$theme_width,$locale,$settings;

echo 
"</td>
piekarz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-14-2008, 02:09 PM Re: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' o
choskins102's Avatar
Super Talker

Posts: 137
Name: Casey
Trades: 3
Your last line needs to close the echo statement
Code:
echo "</td>";
That's just what I can see right of the bat.

Also, you have an open bracket { at the end of your function but I don't see a closing bracket. Is there more to the code?

Last edited by choskins102; 06-14-2008 at 02:10 PM..
choskins102 is offline
Reply With Quote
View Public Profile
 
Old 06-14-2008, 05:38 PM Re: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' o
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
You also need to close your PHP with a ?>
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 06-14-2008, 11:07 PM Re: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' o
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Quote:
Originally Posted by Arenlor View Post
You also need to close your PHP with a ?>
Actually, that is not a requirement, and its suggested to leave out the closing ?> when you include header files that parse before the output starts to avoid possible chances of of whitespaces leaking out to the output stream.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14064 seconds with 12 queries