two mysql tables
#2

Try something like this:

PHP код:
select `YourDBName`.`players`.`username` AS `username`,`YourDBName`.`players`.`xp` AS `xpfrom `YourDBName`.`players
union 
select 
`YourDBName`.`players1`.`username` AS `username`,`YourDBName`.`players1`.`xp` AS `xpfrom `YourDBName`.`players1
order by `xpdesc 
the best was if to create a view in your database of a table and use this query, then it is always logged in the view.

the query is ceated to put the highest score on top.

if this helped you +rep.

if you need more information let me know.
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: 1 Guest(s)