All pastes #245413 Raw Edit

Untitled

public text v1 · immutable
#245413 ·published 2006-11-10 23:26 UTC
rendered paste body
<?php
$sentID=$POST['postID']; 
include 'library/config.php';
include 'library/opendb.php';
mysql_query("DELETE FROM news WHERE ID='$sentID'") 
or die(mysql_error());  
include 'library/closedb.php'; 
?> 
 
<html>
<head>
<title>Delete</title>
</head>
<body bgcolor="white">
  <form method="POST" action="">
    <font color="blue">ID to delete:</font>
      <input type="text" id="postID" name="postID" size=100>
      <input type="submit" value="Submit">
  </form>
</body>
</html>