Jump to content

Unexpect T encapsed and whitespace


jwer78

Recommended Posts

Im not sure why Im getting this error but it says unexpected t encapsed and whitespace expecting ']' line 58. This script works fine on another site I used it on so Im kinda baffled. Any ideas what it could be? Bold is the line 58 Thanks in advance

for($count=0;$count<$teams_division[$div];$count++){
if($count%2==0) $back = 'cccccc';
else $back = 'FFFFFF';
echo "<tr>";
[b]echo "<td width=100 align=left>' . $team_name[$old_count+$count] . '</td>";[/b]
echo "<td width=15 align=center>' . $wins[$old_count + $count] . '</td>";
echo "<td width=15 align=center>' . $loses[$old_count + $count] . '</td>";
echo "<td width=15 align=center>' . $ties[$old_count + $count] . '</td>";
}
$old_count += $teams_division[$div];

Link to comment
Share on other sites

actually on strict it will error because it will be considered declared as a function.

 

    Note: Because this is a language construct and not a function, it cannot be called using variable functions

 

right off php.net they use quotes, but as of strict version of 5 and i believe through 6s release you can not call it with () to prevent all issues that might be unforseen

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.