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 05.04.2006, 22:13   #2
darkkiss
Архивный участник
 
Join Date: Sep 2005
Posts: 41
Default

lol .. that's simple

Code:
<?php

$dbaddress = "1xx.xx8.0.1"; // your db ip
$dbuser = "salogin"; // your SA login
$dbpass = "************"; // your password

// * DO NOT EDIT BELLOW :) * \\


$geti = $_GET['id'];
$getr = $_GET['req'];

function connectdb($db) {
   $dbconnect = mssql_connect ($dbaddress, $dbuser, $dbpass);
   mssql_select_db ($db, $dbconnect) or die (mysql_error());
}
function deleteitem($id){
   connectdb("lin2world");
   mssql_query("DELETE FROM user_item WHERE item_type='$id'");
}
if((!$getr) || (!$geti)){
?>
Delete item:


<form method="get">
Item ID: <input type="text" name="id">

<input type="hidden" name="req" value="1">

<input type="submit" value="DELETE IT">
</form>
<?php
}else{
deleteitem($geti);
}
?>
should work ... test 1'st
darkkiss 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 03:12.