![]() |
|
#1
|
|||
|
|||
mysql and asp.I am building my own game online using .asp format and mysql msaccess database. I currently have members table a masterlist for weapons, armor pieces, misc, and foods. What I'm trying to do next is create a dynamic place in the mysql table a new table for inventories. List the player name then for every column the 15 (maybe more) different types of items a player can have. IE:
Player, weapons, armorhead, armorchest... misc. I already have it so what the player has equipped on him is in the members table. But I can't figure out how can I make each space where Playername = "blank" that the corrisponding column can hold multiple items by names or some other faster means. I've been trying to do this with a dynamic array but i still run into the problem of where character in members = character in inventory let players backpack have weapons seperated by ,'s in the table indicate a new weapon. then on the proper page displayed call up each weapon in a dropdown listbox. I've been trying to get this but nothing has worked so far please help and sorry for all the pseudocoding. |
|||
|
#2
|
||||
|
||||
Database Normalization example. (mysql)Hello Powerboss,
I am not really sure what you're asking here. For example, what is a "mysql msaccess database"? It's usually one or the other... Since I didn't quite understand your problem, I'll take a wild guess and assume that you are looking for suggestions to optimise your (database) tables. If I were you, I'd separate the SUPPLIES from being anywhere inside the MEMBER/PLAYER table. E.g. Code:
|
|
#3
|
|||
|
|||
Re: mysql and asp.What you stated is almost exactly what i was asking. Here's more on it.
Yes I have the stuff seperated. Here's what my tables basically look like. HTML Code:
How do i link these together so a player can carry more than one item in the inventory table such as take what's in inventory weapons for character jay + new weapon if new weapon is not already there and if it is display it as knife(2+) until the player can't hold anymore. Sorry for the misuse of placing this in a table like that didn't turn out the way i wanted and messed up hopefully you have no trouble viewing my pseudocode. Last edited by LuciWiz : 05-Nov-2005 at 16:04.
Reason: Please insert your HTML code between [html] & [/html] tags
|
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The