Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[HELP]Item Delete Page with Check??

RageZ Hell
Joined
Nov 17, 2006
Messages
511
Reaction score
0
Well...
Code:
?></td>
  </tr>
</table>
<table width="730" border="1" bordercolor="#A0A0A4">
  <tr>
    <td><em><strong>Delete Items</strong></em></td>
  </tr>
  <tr>
    <td><FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>?act=deleteitem">
      CID: 
      <input name="itemtodelete" type="text" id="itemtodelete" /> 
      <input type="submit" name="Submit2" value="Delete Items" />
    </form>
    </td>
  </tr>
  <tr>
    <td>Results: <?php 
        if ($_GET['act'] == 'deleteitem')
{
    $cid = anti_injection($_POST['itemtodelete']);
    if (valida(Array($cid)) == true)
    {
    $query = mssql_query("SELECT * FROM Items WHERE CID='$cid'");
            if(mssql_num_rows($query)<1){
            echo "CID Doesnt Exists!";
                } else {
            $sql=mssql_query("DELETE from Items WHERE CID='$cid'");
            if ($sql) echo "The cid $cid was deleted."; else echo 'There is a problem.';
        }
    }
}
I have ready so much but now i dont know how make to Login and Password for check and Char for check is it right cidTO THERE>>>>[<input name="itemtodelete" type="text" id="itemtodelete" /> ]
 
Back
Top