Initial commit

This commit is contained in:
2020-03-30 22:03:06 -05:00
commit 353a663501
4 changed files with 70 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<?php
function get_category_items($db)
{
return mysqli_query($db, "SELECT * FROM `category`");
}
?>
+9
View File
@@ -0,0 +1,9 @@
<?php
$host = '127.0.0.1:3306';
$user_name = 'root';
$password = '1a9t7y';
$db_name = 'inventory';
$db = mysqli_connect($host, $user_name, $password, $db_name) or die("Failed to
connect to MySQL: " . mysqli_error($db));
?>