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
negar
Forum Newbie
Posts: 9 Joined: Mon Mar 15, 2004 10:36 am
Post
by negar » Tue Mar 30, 2004 3:37 am
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
?>
CoderGoblin
DevNet Resident
Posts: 1425 Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany
Post
by CoderGoblin » Tue Mar 30, 2004 3:47 am
Try using HTML entity £ 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
Post
by negar » Tue Mar 30, 2004 5:30 am
thanx so much..it worked!!!!!!!!!