Updated theme handling and got the category form to clone rows.

This commit is contained in:
2020-04-06 23:34:36 -05:00
parent 257d442f40
commit aa2cbba34d
9 changed files with 191 additions and 28 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
function get_category_items()
{
global $conn;
$conn = get_db_connection();
$items = mysqli_query($conn, "SELECT * FROM `category`");
$conn->close();
@@ -12,7 +12,7 @@
function create_category($name)
{
global $conn;
$conn = get_db_connection();
$statement = $conn->prepare("INSERT INTO `category` (category_name) VALUES (?)");
$statement->bind_param("s", $name);
if($statement->execute() == true){