Can't display currency symbols in SQL Query reslts

Posted on 2008-10-22
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.
Question by:betch
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

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


Author Comment

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.


Accepted Solution

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.

Author Comment

ID: 22775060
Nice one shahzadfatehali.

The first method works great.

Thanks again Betch

Author Closing Comment

ID: 31508672
Thanks a lot for your help.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Curl Problem 10 77
Code not executing correctly. 3 44
Posting and receiving data with JSON in PHP 12 39
Last 4 numbers of a variable 9 24
Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

752 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