Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error when using code supplied in Wiki Docs


EM60

Recommended Posts

Posted

Hello,

 

I wonder if anyone has found a cure for this parse error which you get from using code given in Wiki Docs

 

http://wiki.oscommerce.com/docsCatTipIp

 

Here is what the document says to do

 

______________________________________________________

 

How do you make the visitors IP show up in the footer?

 

In catalog/includes/footer.php at the very bottom.

 

Change:

 

<?php

}

?>

To:

 

<?php

$rmtIP = $REMOTE_ADDR;

?>

< tr>

<td colspan="2">

<table width="100%">

<tr>

<td class="smalltext" align="center" height="20" valign="middle">

<?php echo "   Your IP Address is: " . $rmtIP; ?>

</td>

</tr>

</table>

< /tr>

This puts the IP address inside a table.

 

_________________________________________________________________

 

However I get a parse error. I have tried everything I know without much success .

Any help would be greatly received

 

thanks in advance

 

 

EM60

Archived

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

×
×
  • Create New...