Jump to content

Php Is Adding  Before £


Recommended Posts

I've got a real oddity going on here.On a page I have a bit of code:

<?php require_once('includes/basketdiv.php'); ?>

On a more complex page when it outputs the content of that file it adds a  before the £. For example "Basket Items: 0 | Total Price: £". However, on a very simplistic page it outputs the contents of the file correctly.The total content of the file is:

<div class="basketdiv"><a href=basket.php>Basket Items: 0 | Total Price: £0</a></div>

This is just part of a website test I'm going through, my only thought is that the more complex page includes some echo's in it rather than print. Could that be affecting it? (It also has the results of a sql query)Any suggestions on how to resolve this? A quick search on Google results in unhelpful responses from php devs.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...