Jump to content

I have a question


j007ha

Recommended Posts

Hi all, I have a question about how to adding a new row in a table after a row of record have been enter.

 

Example:

Im using a drop down list to let user to select a list of item and after the user have make their choose

all information about the item will be fill into the row of the table. So in this case, if the user wish to select one or more item, then how can i adding a new row for the purpose of storing the information of the item?

 

This is my 1st post hehe

hope can receive any one of ur reply :P

Link to comment
https://forums.phpfreaks.com/topic/114609-i-have-a-question/
Share on other sites

You should have additinoal tables and not grow a table sideways.

 

Example

 

Users table

UserID Password etc.

 

Items Table

ItemID Description etc.

 

Users_Items

 

UserID, ItemID

 

The Users_Items list all the "items" a specific user has.  You can do anything from 0-infinity items per user/ add items etc.

Link to comment
https://forums.phpfreaks.com/topic/114609-i-have-a-question/#findComment-589278
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.