Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   Delete banned chars/accounts (https://postpacific.mmorpg-game.online/showthread.php?t=4487)

top-gear 19.05.2006 20:27

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 21.05.2006 02:00

I would appreciate some help cause I have a huge problem

RipperX 21.05.2006 02:11

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..

top-gear 21.05.2006 11:46

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


All times are GMT. The time now is 21:44.