Stevan Posted February 6, 2008 Share Posted February 6, 2008 I get this errors I am not sure why Parse error: syntax error, unexpected T_FINAL in /home2/cruisew/public_html/discountcruiseagency.net/mlm/sub_add.php on line 2 Line 2 = <? if ($val != final){ ?> and Parse error: syntax error, unexpected T_FINAL in /home2/cruisew/public_html/discountcruiseagency.net/mlm/account_details.php on line 2 Line 2 = <? if ($val != final){ ?> This is beyond what I know THXS Steve Link to comment https://forums.phpfreaks.com/topic/89665-solved-parse-error-syntax-error-unexpected-t_final/ Share on other sites More sharing options...
revraz Posted February 6, 2008 Share Posted February 6, 2008 What are you trying to do? Link to comment https://forums.phpfreaks.com/topic/89665-solved-parse-error-syntax-error-unexpected-t_final/#findComment-459415 Share on other sites More sharing options...
mmarif4u Posted February 6, 2008 Share Posted February 6, 2008 Try this: <? if ($val != 'final'){ ?> Or show the before or after lines from this code. Link to comment https://forums.phpfreaks.com/topic/89665-solved-parse-error-syntax-error-unexpected-t_final/#findComment-459418 Share on other sites More sharing options...
haku Posted February 6, 2008 Share Posted February 6, 2008 show us your first 10 lines. And use <?php not <? Link to comment https://forums.phpfreaks.com/topic/89665-solved-parse-error-syntax-error-unexpected-t_final/#findComment-459420 Share on other sites More sharing options...
clearstatcache Posted February 6, 2008 Share Posted February 6, 2008 if final is a string u add single quotes Line 2 = <? if ($val != 'final'){} ?> if final is a variable Line 2 = <? if ($val != $final){} ?> Link to comment https://forums.phpfreaks.com/topic/89665-solved-parse-error-syntax-error-unexpected-t_final/#findComment-459422 Share on other sites More sharing options...
Stevan Posted February 6, 2008 Author Share Posted February 6, 2008 THXS VERY MUCH That solved the problem Link to comment https://forums.phpfreaks.com/topic/89665-solved-parse-error-syntax-error-unexpected-t_final/#findComment-459432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.