Hi,
I am trying to code to put a PayPal logo in a page. Here is the code:
<?php
// -----------------------------------
// PAYPAL ACCEPTED ITEM
// -----------------------------------
// test if box should be displayed
$show_MYK_PAYPAL = true;
if ($show_MYK_PAYPAL == true) {
?>
<div align="center" style="padding:5px;">
<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="https://www.paypal.com/en_GB/i/bnr/vertical_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->
</div>
<?php }
?>
The bit I have highlighted red is straight from the PayPal web site. I am getting the following error message:
Parse error: syntax error, unexpected T_STRING in MYK_PAYPAL.php on line 7
Line 7 is the one that says: $show_MYK_PAYPAL = true;
I am no expert in PHP, in fact I have never programmed in PHP... if anyone can say what the problem might be I would be very grateful.
Thanks.