Location: PHPKode > projects > The Referral Database > referralsdb/delete_category.php
<?php

// include function files for this application
require_once("referrals_fns.php"); 
session_start();

do_html_header("Deleting category");
if (check_admin_user())
{
  if ($catid) 
  {
       // from admin_fns.php
    if(delete_category($catid))
      echo "Category was deleted.<br>";
    else
      echo "Category could not be deleted.<br>"
           ."This is usually because it is not empty.<br>";
  } 
  else 
    echo "No category specified.  Please try again.<br>";
}
else 
  echo "You are not authorized to view this page."; 

do_html_footer();

?>
Return current item: The Referral Database