Well, I didn't really answer your question, but now I will try.
If you look at mySQL column types, they are:
-
VARCHAR
-
TINYINT
-
TEXT
-
DATE
-
SMALLINT
-
MEDIUMINT
-
INT
-
BIGINT
-
FLOAT
-
DOUBLE
-
DECIMAL
-
DATETIME
-
TIMESTAMP
-
TIME
-
YEAR
-
CHAR
-
TINYBLOB
-
TINYTEXT
-
BLOB
-
MEDIUMBLOB
-
MEDIUMTEXT
-
LONGBLOB
-
LONGTEXT
-
ENUM
-
SET
-
BOOL
-
BINARY
-
VARBINARY
So you can see that mySQL doesn't have any "Currency" type. So you would store your currency as a number (INT). From there, you just need to decide what your basic overall default currency is (dollar, pound, looney, frank, Euro). Then you can do conversions for each individual currency.
PHP doesn't care about currency from my experience. PHP doesn't really interpret currency, rather it just interprets code. So $1 vs 1 Euro in PHP is just numbers. You the coder have to decide how you want to display or modify the number. Here's what I would do:
Figure out all the major conversions from your default currency:
-
Dollar => Pound
-
Dollar => Euro
-
Dollar => Frank
-
etc., etc., etc...
Then write a small function that converts from your default currency (Dollar) to the user currency (Pound, Frank, Euro, etc....). Then when you store your price in the database, just store it as an integer, and base it on the default value (Dollar). That way, the prices are "real-time" and your code is just a matter of defining what the users currency symbol is and converting the number from US Dollars.
~Brett