Updated theme handling and got the category form to clone rows.
This commit is contained in:
+2
-2
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user