[PHP] XX outputting X signs

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

  1. #1

    Default RE: [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
    > -----Original Message-----
    > From: David Nicholson [mailto:me@djnicholson.com]
    > Sent: 22 July 2003 3:51 pm
    > To: David Goodchild
    > Cc: [email]php-general@lists.php.net[/email]
    > Subject: Re: [PHP] XX outputting X signs
    >
    >
    > Hello,
    >
    > This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at
    > 15:01, lines prefixed by '>' were originally written by you.
    > > My suggesstion would be as your adding the data to the database
    > > convert the
    > > £ to £
    >
    > I wouldn't do that, it will eman extra CPU cycles if at a later date
    > you decide you want to use the data in your database for anything
    > other than a HTML page. Also it is 6 bytes of wasted disk space per
    > record - in a very large database that would show.
    >
    > David.
    >
    > --
    > phpmachine :: The quick and easy to use service providing you with
    > professionally developed PHP scripts :: http://www.phpmachine.com/
    >
    > Professional Web Development by David Nicholson
    > http://www.djnicholson.com/
    >
    > QuizSender.com - How well do your friends actually know you?
    > http://www.quizsender.com/
    > (developed entirely in PHP)
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    >
    George Pitcher 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. £ 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...
  3. #2

    Default Re: [PHP] XX outputting X signs

    Hello,

    This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at
    16:01, lines prefixed by '>' were originally written by you.
    > Would it not make sese to store the number as a decimal and have
    the
    > '£'
    > added at output?
    I had assumed that the original poster was storing currency ammounts
    within a sentence that had an entire text field to itself, but yes,
    if it is only the amount being stored in the field use a decimal and
    add the pound symbol when creating your page.

    David.

    --
    phpmachine :: The quick and easy to use service providing you with
    professionally developed PHP scripts :: [url]http://www.phpmachine.com/[/url]

    Professional Web Development by David Nicholson
    [url]http://www.djnicholson.com/[/url]

    QuizSender.com - How well do your friends actually know you?
    [url]http://www.quizsender.com/[/url]
    (developed entirely in PHP)
    David Nicholson 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