MCSchwartz Posted January 9, 2012 Report Share Posted January 9, 2012 I'm assisting a friend on some code and their is an issue: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/hawaiian/public_html/core/templates/pilots_list.tpl on line 59 <td><?php if($pilot->retired == '1') {echo '<img src="'www.hawaiianairva.com/lib/skins/BrettLoweUALSkin/images/no.png'" alt="warning" /> - Retired';} else {echo '<img src="'www.hawaiianairva.com/lib/skins/BrettLoweUALSkin/images/yes.png'" alt="warning" /> - Active';} ?></td> <?php I know what the parse error means etc. however my php skills are in the development process so any help as to where the issue is would be much appreciated. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 9, 2012 Administrators Report Share Posted January 9, 2012 Too many quotes in the links - try <?php if($pilot->retired == '1') {echo '<img src="www.hawaiianairva.com/lib/skins/BrettLoweUALSkin/images/no.png" alt="warning" /> - Retired';} else {echo '<img src="www.hawaiianairva.com/lib/skins/BrettLoweUALSkin/images/yes.png" alt="warning" /> - Active';} ?> 1 Quote Link to comment Share on other sites More sharing options...
MCSchwartz Posted January 9, 2012 Author Report Share Posted January 9, 2012 Too many quotes in the links - try <?php if($pilot->retired == '1') {echo '<img src="www.hawaiianairva.com/lib/skins/BrettLoweUALSkin/images/no.png" alt="warning" /> - Retired';} else {echo '<img src="www.hawaiianairva.com/lib/skins/BrettLoweUALSkin/images/yes.png" alt="warning" /> - Active';} ?> I will have to have it uploaded tomorrow, however when running it through a checker nothing came up. Thanks for the help, I really appreciate it! Quote Link to comment Share on other sites More sharing options...
miniarma Posted January 9, 2012 Report Share Posted January 9, 2012 The envy of PHP hahha Do what simpilot put up. Should work fine afterwards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.