ArkSeyonet
Chancho
- Joined
- Nov 11, 2008
- Messages
- 201
- Reaction score
- 11
Basically, I have been unsuccessful so far in trying to take data from the SQL database, and displaying it in a TextDialog.
To show you the tables I need.
I need the TextDialog to display Like this:
So I will need to get 'name' and 'reward' from the sql database from the table 'hunt_system' for each separate 'id' that way it will display the full list of targets.
So basically what I need to know is in LUA, how do I pull information from the SQL database and put it into a table or array, and then display table or array in TextDialog?
To show you the tables I need.
I need the TextDialog to display Like this:
Code:
Current Targets:
BlahBlah - Reward: 1 gold.
BlahBleh - Reward: 100,000 gold.
So I will need to get 'name' and 'reward' from the sql database from the table 'hunt_system' for each separate 'id' that way it will display the full list of targets.
So basically what I need to know is in LUA, how do I pull information from the SQL database and put it into a table or array, and then display table or array in TextDialog?