Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 15.04.2005, 17:53   #7
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default Re: PHP

Instead of this: select char_name, pledge_id, builder, class, use_time, PK, Duel, align from user_data where login>logout AND LOGOUT>0 AND LOGIN>0 AND account_id>=1 order by char_name

do this one:

select user_data.char_name, pledge.pledge_name, user_data.class, user_data.PK, user_data.Duel, user_data.align from user_data, pledge where login>logout AND LOGOUT>0 AND LOGIN>0 AND builder=0 and pledge.pledge_id = user_data.pledge_id order by char_name desc

This way, itll show Char Name, Pledge Name, Class, How many times he has been PK, how many Duels he has fought and Karma at the moment. It'll show only Players (Builder = 0) and it'll show the clan name. Nice select, you should try it in the query analyzer and fix the wrong naming (For instance, im not sure hat pledge is a table inside lin2world, or if the name is called by pledge_name). If you want a top X, just put "select top X" at the beginning and "order by lev desc".

Hope it helps, im here all week for any questions xD

Oso
Osito2Dancer is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:23.