Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.