Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Stickies
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10.10.2005, 13:19   #11
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

thanks, im now testing with the new dll.. btw, i think there is a bug on linkerr.htm read, it is deleting the file. Unless im drunk, ive created it 5 times, lol


Ive made a simple php to get chars from ID. This is really simple and for internal use, but i decided to share anyway, even a worm make it..

a.php
[php:1:25f9dbe644]

<form action=a.php method=post>
ID: <input type=field name=id>

Server: <select name=serv><option value=1>bartz</option><option name=2>Sieghardth</option></select>
<input type=submit>
</form>

<?
if($_POST[id]){
//MSSQL IP.
$mssql_addr="SERVER MSSQL ADDR HERE";
//Login
$mssql_user="sa";
//Pass
$mssql_pass="password";

//Which server
if($_POST[serv]==1){
//Your First server db
$mssql_db="lin2world";
} else {
//Your 2nd server db
$mssql_db="lin2world2"; }


mssql_connect($mssql_addr,$mssql_user,$mssql_pass) or die(mssql_error());
mssql_select_db($mssql_db);

$result=mssql_query("
select char_name from user_data where account_id='$_POST[id]'");
echo "ID $_POST[id]:
Chars:";

while($row=mssql_fetch_array($result)){
echo "$row[0]
";
}


}

?>
[/php:1:25f9dbe644]
horyfilipe 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 08:47.