Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't display currency symbols in SQL Query reslts

Posted on 2008-10-22
5
Medium Priority
?
1,074 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
[X]
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
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 1000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

705 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