Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10.10.2006, 07:31   #6
mastery
Архивный участник
 
Join Date: Feb 2005
Posts: 159
Default

lets see.. i didnt check it, just write it. Code may be not perfect, im not profi but should work..
Code:
<?
include("config.php");

mssql_connect("$mssql_server,$mssql_user,$mssql_pass");
mssql_select_db("lin2db");

$query1=mssql_query("select uid,account,last_world from user_item where last_world < 1 ");
$result1=array();
for($x=0;($result1[$x]=mssql_fetch_assoc($query1));$x++);
unset($result1[count($result1)-1]);


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>delete empty accs by MASTERY</title>
</head>
<body>
<div align="center">All operations  succesfuly completed, Master ;-)
<table width="500" border="1" align="center">
    <tr>
  <td>##</td>        
<td>account id</td> 
<td>name</td>        
<td>result:</td>
</tr>
    <?for($x=0;$x<count($result1);$x++){?>
    <tr>
<td><?=$x+1?></td>      
       <td><?=$uid=$result1[$x]["uid"]?></td>
<td><?=$name=$result1[$x]["account"];
mssql_query("delete from ssn where name='$name'");
mssql_query("delete from user_account where account='$uid'");
mssql_query("delete from user_auth where account='$uid'");
?></td>
       <td>ok</td>
    </tr>

    <?}?>
    <tr>
        <td colspan="2">Total:</td>
        <td><?=count($result1)?></td>
    </tr>
</table>
</body>
</html>
mastery 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 08:41.