[SOLVED] displaying £

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
negar
Forum Newbie
Posts: 9
Joined: Mon Mar 15, 2004 10:36 am

[SOLVED] displaying £

Post by negar »

I want the £ to show before the price is displayed. I am using the code below but all i get is a ? instead of £:

Code: Select all

<td><b><font color='#800080'>Total Price: £";  printf ("%.2f",$total_price); echo"</font></b></td>



can anyone help...thanx

?>
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Try using HTML entity &pound; instead of the £ symbol.
Last edited by CoderGoblin on Tue Mar 30, 2004 5:33 am, edited 1 time in total.
negar
Forum Newbie
Posts: 9
Joined: Mon Mar 15, 2004 10:36 am

thanx

Post by negar »

thanx so much..it worked!!!!!!!!!
Post Reply