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
https://forums.phpfreaks.com/topic/64465-unexpect-t-encapsed-and-whitespace/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.