MCSchwartz Posted January 9, 2012 Report 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
Administrators simpilot Posted January 9, 2012 Administrators Report 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
MCSchwartz Posted January 9, 2012 Author Report 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
miniarma Posted January 9, 2012 Report Posted January 9, 2012 The envy of PHP hahha Do what simpilot put up. Should work fine afterwards. Quote
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.