Jump to content

Using JOIN to join tables


apw

Recommended Posts

Hello i am woundering about how to correctly join one or more tables together. The tables in question would be my km_user and presource tables. The field theses tables have in common would be the ID that is given to then when player registers. Ive read through the tutorial about this topic on this website but am still lost so any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/154850-using-join-to-join-tables/
Share on other sites

Well that kind of depends on what you're trying to achieve. If, as you said, you've read the tutorial on the main site, then you'll know there are various types of joins, each of which are used for different reasons.

 

We need more information in order to answer your question. What fields are in the respective tables? What information are you looking to generate?

The fields in the km_user table are which handles the login info for players! id, empirename(username) and password the presource table, which handles what resources the player has are: id, empirename(wasnt sure if this was necessary), food and wood.  What im trying to do is keep everything seperated and not confusing and jumbled into one large table.

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.