View Single Post
Old 24.06.2005, 22:26   #1
mastery
Архивный участник
 
Join Date: Feb 2005
Posts: 159
Default need litle help on php

do anybody have registration system that uses some serial to register?
and can anybody help me how to implement server statisticks based on cached sql data, to decrease server load by webpage? smt like every 2 min procedure will write all statistics data to some file and page takes result from there. like in RUN UO Server statistics )
btw, im using l2cp modded a bit.

and another question: how this query from asp should be writen in php

query = "SELECT TOP 100 user_data.char_name,user_data.char_id,user_data.ac count_name,TmpD.sumamount,lev,user_data.create_dat e,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 "

the problem seems to be in tempD.sumamount, seems like php dont like that dot.

sry for my poor engl. )
tnx for any advise
mastery is offline