Solved

Can't display currency symbols in SQL Query reslts

Posted on 2008-10-22
5
1,067 Views
Last Modified: 2013-12-13
Hello all, I'm having trouble displaying currency symbols in my MySQL querys when I display them in a table.

I've tried varying combinations of Type and Collation but to no avail.

Is there a simple fix or do I need to add the symbol via php on my web page?

Thanks in advance for your help.
0
Comment
Question by:betch
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:Shahzad Fateh Ali
ID: 22774887
Hi,
Use html codes to store currency symbols.

0
 

Author Comment

by:betch
ID: 22774931
Just to confirm in the Price Field of my database I should type, for example:

&pound 9.99  to display £ 9.99

Thanks for the speed of your response.

0
 
LVL 9

Accepted Solution

by:
Shahzad Fateh Ali earned 250 total points
ID: 22774947
It would be better if you use two columns, one for price (double) and other for sign (varchar).
and to display concate thm.
0
 

Author Comment

by:betch
ID: 22775060
Nice one shahzadfatehali.

The first method works great.

Thanks again Betch
0
 

Author Closing Comment

by:betch
ID: 31508672
Thanks a lot for your help.

Betch
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now