Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem displaying IP addy as per documents


red_fraggle

Recommended Posts

help on the following error would be very nice, thanks in advance to any that respond.

 

 

 

when i replace this:

<?php

}

?>

 

to this:

<?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>

 

i get this error:

 

Parse error: parse error in /home/hsphere/local/home/cmurphy/absalute-pleasure.com/catalog/includes/footer.php on line 70

Link to comment
Share on other sites

  • 1 month later...

try this

<?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></td>
< /tr>

or try adding the code before or after the

<?php
}
?>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Sorry ran out of edit time this works

<?php
$rmtIP = $REMOTE_ADDR;
?>
<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></td>
<?php
}
?>

and so does this

<?php
}
?>
<?php
$rmtIP = $REMOTE_ADDR;
?>
<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></td>

you need the bit of code

<?php
}
?>

in order to close of an earlier opening of

{

used by the banner

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...