two mysql tables
#4

You need to use the SQL join statement joining on a common field.

Код:
SELECT players.XP, players1.XP
FROM players
JOIN players1 ON players.ID = players1.ID
ORDER BY XP DESC
LIMIT 10
That will basically return the data from two tables where for example, the ID from the first is equal to the ID of the second. ****** for more information.
Reply


Messages In This Thread
two mysql tables - by audriuxxx - 17.03.2014, 15:20
Re: two mysql tables - by Thomaske - 17.03.2014, 23:21
Re: two mysql tables - by VishvaJeet - 18.03.2014, 04:10
Re: two mysql tables - by CuervO - 18.03.2014, 04:42

Forum Jump:


Users browsing this thread: 3 Guest(s)