This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/admin/editCategory.php

42 lines
540 B
PHP

<?php
include("path.php");
include(BASE."include/"."incl.php");
include(BASE."include/"."tableve.php");
include(BASE."include/"."qclass.php");
if(!havepriv("admin"))
{
errorpage();
exit;
}
else
{
global $admin_mode;
$admin_mode = 1;
}
apidb_header("Edit Category");
$t = new TableVE("edit");
if($_POST)
{
$t->update($_POST);
}
else
{
$table = "appCategory";
$query = "SELECT * FROM $table WHERE catId = $catId";
if(debugging())
echo "$query <br><br>\n";
$t->edit($query);
}
apidb_footer();
?>