Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 19.05.2006, 20:27   #1
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default Delete banned chars/accounts

I would like some help creating an sql script that will delete all banned accounts as well as chars and skills items warehouses of those chars. I would like to reduce the lin2world database size to be more easy-handled by the server. thank you in advance
top-gear is offline  
Old 21.05.2006, 02:00   #2
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

I would appreciate some help cause I have a huge problem
top-gear is offline  
Old 21.05.2006, 02:11   #3
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

by PHP

[php:1:4ce628b40b]
$sql="select account from lin2db.dbo.user_account where pay_stat = 0";
$result = mssql_query($sql);
for ($i=0;$i<mssql_num_rows($sql);$i++) {
$sql="select char_id from lin2db.dbo.user_data where account_name='".mssql_result($result,$i,0)."'";
$result2=mssql_query($sql);
$charid[count($charid)]=mssql_result($result2,0,0);
}
...
...[/php:1:4ce628b40b]

try finish..
RipperX is offline  
Old 21.05.2006, 11:46   #4
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

thanks a lot! ill try to finish cause //ping results are 5-digit each :S
top-gear is offline  
 


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 22:07.