MasterACE14 Posted December 23, 2008 Share Posted December 23, 2008 I have a file which is throwing me a error, I have been staring at the same file for a couple of hours now. I just can't find where the error is coming from. here's the error: Parse error: syntax error, unexpected $end in /home/eliteace/public_html/realmbattles/attack.php on line 526 here's part of the code: <?php numecho(getDefenseAction($user)); ?> </TD> <TD align=right>Ranked <?php if ($userR->defenceActionRank) { numecho($userR->defenceActionRank); } else echo "#unranked"; ?> </TD> </TR> <TR> <TD><B>Covert Action</B></TD> <TD align=right> <?php numecho(getCovertAction($user->ID)); ?> </TD> <TD align=right>Ranked <?php if ($userR->covertActionRank) { numecho($userR->covertActionRank); } else echo "#unranked"; ?> </TD> </TR> </TBODY> </TABLE></TD></TR></TBODY></TABLE> <?php include("bottom.php"); // this is line 526 and the last line in the file ?> any help is greatly appreciated. Regards ACE Link to comment https://forums.phpfreaks.com/topic/138106-solved-unexpected-end/ Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 Notice any missing braces in this? if ($userR->covertActionRank) { numecho($userR->covertActionRank); } else echo "#unranked"; Your also missing a closing } Link to comment https://forums.phpfreaks.com/topic/138106-solved-unexpected-end/#findComment-721955 Share on other sites More sharing options...
MasterACE14 Posted December 23, 2008 Author Share Posted December 23, 2008 yeah that's just the short hand the original creator of this file used. And I found the missing curly brace , cheers. ACE Link to comment https://forums.phpfreaks.com/topic/138106-solved-unexpected-end/#findComment-721960 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.