Added a class to retrieve the basic item information data.

This commit is contained in:
2020-04-06 11:51:45 -05:00
parent 353a663501
commit 257d442f40
7 changed files with 79 additions and 23 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
require "db.php";
function get_item_base_attributes(){
global $conn;
$query = "SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'inventory' AND TABLE_NAME = 'item_info';";
$data = mysqli_query($conn, $query);
$conn->close();
return $data;
}
?>