0

I trying to build a site that is works with electronic currencies. Example, a WebMoney currency has its own set of parameters, such as wmid etc. And uKash has its own parameters also a series of other parameters, such as emails etc. Now it is not clear how many currency site administrators is introduced while the unknown parameters I thought to myself, bank currency should be constructed in a dynamic table that the user can set the parameters. Know i don't how to implement it?

1
  • here you want to create a table with dynamic number of columns in it? Commented Sep 4, 2012 at 7:13

1 Answer 1

1

Tables can't have dynamic columns

You can add a table for each form of web currency that contains the parameters those currencies require = ie: A WebMoney table, a uKash table, etc.

Or you can add an XML column to your main table that contains the variable data information for the specific web currency in question. eg:

<webcurrency type="webmoney">
    <wmid>1</wmid>
<webmoney>

and

<webcurrency type="uKash">
    <email>[email protected]</email>
<webmoney>

Given your intention to allow for future currencies, perhaps the second choice is preferable.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.