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
+21 -7
View File
@@ -1,9 +1,23 @@
<?php
$host = '127.0.0.1:3306';
$user_name = 'root';
$password = '1a9t7y';
$db_name = 'inventory';
$conn = mysqli_connect($host, $user_name, $password, $db_name) or die("Failed to
connect to MySQL: " . mysqli_error($conn));
function get_db_connection(){
$host = '127.0.0.1:3306';
$user_name = 'root';
$password = '1a9t7y';
$db_name = 'inventory';
$conn = mysqli_connect($host, $user_name, $password, $db_name) or die("Failed to
connect to MySQL: " . mysqli_error($conn));
return $conn;
}
function get_supported_data_types(){
return [
"date" => "Date",
"money" => "money",
"text" => "Long Description",
"varchar" => "Short Text",
"integer" => "Count"
];
}
?>