Location: PHPKode > scripts > alarisMenu > alarismenu/alarisAdmin/mysql_delete_menu.php
<? include_once("alaris_main_fns.php");
/*
 * Delete main or sub-menu entry
 */
session_start();
check_valid_user(); 
 
if(isset($edit_sub)){
    $query = "DELETE FROM alaris_sub_menu WHERE sub_id=$edit_sub";
}
if(isset($edit)){
    $query  = "DELETE FROM alaris_menu WHERE parent_id=$edit";
    $query2 = "DELETE FROM alaris_sub_menu WHERE parent_id=$edit";
}
db_connect();
mysql_query($query);
if($query2)
  mysql_query($query2);
db_close();

$path = "alarisAdmin.php?view=menu";
header("location:$path");


?>
Return current item: alarisMenu