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
unexpected T_CONSTANT_ENCAPSED_STRING
Old 10-13-2007, 08:07 AM unexpected T_CONSTANT_ENCAPSED_STRING
melefire's Avatar
Experienced Talker

Posts: 46
Name: matt
Trades: 0
Ok i get
Code:
Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\*****\creature.php on line 997
this is the code
PHP Code:
      <td>".makeinfocell($lang_creature['combat_reach'],$lang_creature['combat_reach_desc'])."</td>
      <
td><input type=\"text\" name=\"combat_reach\" size=\"8\" maxlength=\"10\" value=\"{$mob['combat_reach']}\" /></td>
 
     
 
$dmgschool = array(0 => "", 1 => "", 2 => "", 3 => "", 4 => "", 5 => "", 6 => "");
 
$dmgschool[$mob['dmgschool']] = " selected=\"selected\" "
line 997 is the one that starts with $dmgschool
melefire is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-13-2007, 08:28 AM Re: unexpected T_CONSTANT_ENCAPSED_STRING
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Is the first bit in the middle of a big echo? If it is correct you have missed out a \ in front of a ". It is somewhat confusing to me as the second part which obviously should be echoed looks like it is also going to be echoed. If it is your deliberate intention, you have missed out another couple.

For future reference, a quick check of http://us3.php.net/tokens can be really helpful in solving errors
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 10-13-2007, 08:59 AM Re: unexpected T_CONSTANT_ENCAPSED_STRING
melefire's Avatar
Experienced Talker

Posts: 46
Name: matt
Trades: 0
The first bit is to echoed the second bit is before another echo.

also i cant find where i missed a /
melefire is offline
Reply With Quote
View Public Profile
 
Old 10-13-2007, 10:00 AM Re: unexpected T_CONSTANT_ENCAPSED_STRING
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Apologies - the PHP looks as though you have missed them out, but when I went to quote you, I saw my mistake.

If the first bit is echoed but not the second bit, where do you stop the first echo?
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE

Last edited by Foundationflash; 10-13-2007 at 10:02 AM..
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 10-13-2007, 05:35 PM Re: unexpected T_CONSTANT_ENCAPSED_STRING
melefire's Avatar
Experienced Talker

Posts: 46
Name: matt
Trades: 0
Before the $dmgschool
melefire is offline
Reply With Quote
View Public Profile
 
Old 10-13-2007, 06:06 PM Re: unexpected T_CONSTANT_ENCAPSED_STRING
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Quote:
Originally Posted by melefire View Post
PHP Code:
value=\"{$mob['combat_reach']}\" /></td>
 
 
$dmgschool = array(0 => "", 1 => "", 2 => "", 3 => "", 4 => "", 5 => "", 6 => ""); 
I can't see where you end the echo...
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Reply     « Reply to unexpected T_CONSTANT_ENCAPSED_STRING
 

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 5.73549 seconds with 12 queries