Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unexpected T_STRING error in newly created SSL Box


Sloane

Recommended Posts

Posted

HI

 

I have just added a box to show my security seal. The box just shows the security seal and links back to the Security website when clicked. I have duplicated code from other boxes to ensure it is formatted correctly but I am now getting an unexpected T_STRING error on line 24.

I am stumped as to how to correct it.

I intially made changes so I could get the same border formatting as my other boxes and have now mucked the whole thing up.

 

Any help would be greatly appreciated. Here's the code.

 

>

<!-- security //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_SECURITY);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => '<a href="http://www.PositiveSSL.com" style="font-family: arial; font-size: 10px; text-decoration: none;">'<img src="images/PositiveSSL_tl_trans.gif" alt="SSL Certificate Authority" title="SSL Certificate Authority" border="0" /><br />SSL Certificate Authority</a>);

 

new infoBox($info_box_contents);

?>

</td>

</tr>

 

<!-- security_eof //-->

Posted

...SSL Certificate Authority</a>);

...

 

by the look of it, you are missing a single quotation mark after the </a> closing tag, ie, it'd be

</a>');

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

Apologies to ALL for posting this in 2 sections.

It was an unintentional mistake.

Thanks to Ken and Nic for pointing this out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...