Jump to content

Recommended Posts

Posted

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.

  • Administrators
Posted

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';}
?>

  • Like 1
Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...