View Full Version : Delete banned chars/accounts
top-gear
19.05.2006, 20:27
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
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