NogDog;11014127 wrote:You have a lot of quoting issues in there, often starting off a string literal with a double quote, then apparently trying to close it with a single quote (e.g. when doing concatenation). You might want to consider using [man]sprintf/man or "[man]heredoc[/man]" syntax (along with curly-brace "complex" variable notation) to clean things up and make it easier to figure out, e.g.:
echo <<<EOD
<a href="something/{$foo['bar']}" onclick="document.something('{$fubar['something']}');">{$the_text}</a>
EOD;
/* note that the above "EOD;" line must not have any preceding white-space */
Okay I took your suggestion and read the info from the links so I modified the code. This got rid of the T Class error message. However, now I get a Parse error: syntax error, unexpected T_STRING on line 115. I have back slashed my double quotes but still can not shake this error message after many renditions of the code.
$image = "<img src="'.$image.'" alt="'.$row["mtitle"].'" title="'.$row['mtitle'].'" border="0" /> [B]- Line 113[/B]
echo sprintf(<td class="'.$lintype.'" width="'.$colwidth.'%" align=\"center\" valign=\"top\">);
echo <<<EOD<a href=\"index.php?name=Movie&mid={$row['mid']}target=\"_blank\"\">($row['mtitle'])<br />{$image}</a><br /></td>EOD; [B]- Line 115[/B]
}
for ( $i = $c; $i < $across; $i++ ) {
echo <<<EOD<td class=\"'.$lintype.'\" width=\"'.$colwidth.'\"% valign=\"top\"> </td>EOD;
}
}