View Single Post
Old 26.06.2005, 08:11   #6
vieruemil
Архивный участник
 
Join Date: Jun 2005
Posts: 31
Default

BigBoy wrote an explanation for you at line 23 - "<----- !!!! add ur path to file here !!!!"
just remove it.

Th refresh code is only the meta tag
Code:
<meta http-equiv="REFRESH" content="90;url=home.php">
You put it between the
Code:
<head>         </head>
tags of your php file.
If you load the page in browser and let it open, after 90 sec. it goes to the url indicated in the meta-tag. So if the url is the same page, then it reloads it again, and again ... after each 90 sec.

What do you mean with search by id?
You want to indicate the ID and have as result the item name ?
Or you want to search several information about the players, who own the items you want to check?

btw the items data is stored in the user_item table (lin2world DB).

Try to execute your query in the query analyser and see the results.
Code:
SELECT TOP 100 user_data.char_name,user_data.char_id,user_data.account_name,TmpD.sumamount,lev,user_data.create_date,user_data.use_time,login,logout FROM(SELECT char_id, SUM(item_id) AS sumamount FROM user_item WHERE item_type = 1306 GROUP BY char_id) TmpD INNER JOIN user_data ON TmpD.char_id = user_data.char_id ORDER BY account_name ASC
It should work. The problem cannot be the php or asp, 'cause it's only a SQL query. The php or asp just displays what the query returns.
vieruemil is offline