Location: PHPKode > projects > Chipmunk Stories > admin/delete.php
include "connect.php";
if (isset($_SESSION['username']))
  $delquery="SELECT * from s_entries where ID='$ID'";
  $delquery2=mysql_query($delquery) or die("There is no ID");
  $update="UPDATE s_titles set numposts=numposts-1 where ID='$delquery3[parent]'";
  mysql_query($update) or die("Could not update");
  $del="DELETE from s_entries where ID='$ID'";
  mysql_query($del) or die("Failed to delete, muhahaha");
  print "Entry Deleted successfully, redirecting to admin panel <META HTTP-EQUIV = 'Refresh' Content = '2; URL =index.php'>";

  print "Not logged in as admin";

Return current item: Chipmunk Stories