£ outputting £ signs

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default £ outputting £ signs

    Hello all

    Can someone tell me where i am going wrong here. I am trying to echo a '£' to the screen which has come from a database field. I get the field by:

    $notes=%row["notes"];

    and the feild contains the data £25000, however when i echo this to the screen i get £25000. I have tried htmlentities() but obviously that outputs £ as it should. html_entity_decode() makes no diference either. Any suggestions or pointing me to the right function docs etc would be greatly appreciated!

    Thanks in advance for any help!


    ---------------------------------
    Want to chat instantly with your online friends?*Get the FREE Yahoo!Messenger
    Bob pilly Guest

  2. Similar Questions and Discussions

    1. chinese signs to database
      Hello, i need to insert chinese signs in a table. but if i insert them, in the database there is only shown some weird values. do u know how i...
    2. Illustrator to Vinyl Signs...how to?
      After creating some complex black and white art for a television show, I was asked to send a file to a signmaker who would create it in vinyl to put...
    3. Pound signs in a URL
      Hi, Let's say for instance, I have an URL such as: www.mysite.com/root/programming/cfdirectory.cfm?debug=0&currentDir=dir3_C#Help&d epth=2 ...
    4. equation signs
      how can i copy an equation from word equation editor in freehand without problems? or is it possible to type/put equation signs (like square root)?
    5. [PHP] XX outputting X signs
      Would it not make sese to store the number as a decimal and have the '£' added at output? George, in Oxford, where £££=pints
  3. #2

    Default Re: £ outputting £ signs

    My suggesstion would be as your adding the data to the database convert the
    £ to £

    Thats should solve the problem however not provide an explaination for what
    is occuring here.

    Dave


    "Bob pilly" <bobpilly@yahoo.co.uk> wrote in message
    news:20030722132203.83413.qmail@web40505.mail.yaho o.com...
    > Hello all
    >
    > Can someone tell me where i am going wrong here. I am trying to echo a '£'
    to the screen which has come from a database field. I get the field by:
    >
    > $notes=%row["notes"];
    >
    > and the feild contains the data £25000, however when i echo this to the
    screen i get £25000. I have tried htmlentities() but obviously that outputs
    &pound; as it should. html_entity_decode() makes no diference either. Any
    suggestions or pointing me to the right function docs etc would be greatly
    appreciated!
    >
    > Thanks in advance for any help!
    >
    >
    > ---------------------------------
    > Want to chat instantly with your online friends? Get the FREE
    Yahoo!Messenger


    David Goodchild Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139