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
+10 -3
View File
@@ -2,13 +2,20 @@
require "db.php";
function get_item_base_attributes(){
global $conn;
$conn = get_db_connection();
$rows = [];
$query = "SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'inventory' AND TABLE_NAME = 'item_info';";
$data = mysqli_query($conn, $query);
$data = mysqli_query($conn, $query);
while($row = mysqli_fetch_array($data)){
$rows[] = str_replace("_", " ", $row["COLUMN_NAME"]);
}
$data->free();
$conn->close();
return $data;
return $rows;
}
?>